lkml.org 
[lkml]   [1996]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectELF - are .comment and .note sections needed? Inline syscalls?
I was experimenting to see how small I could make an executable, and found
that readelf showed .comment and .note sections in the code. It would
sometimes show others too. Are they used for any purpose? strip won't
remove them unless you specifically say --remove-section= for each one you
want to remove.

Also, is there any way to force the inlining of system calls? If I
include asm/unistd.h I can define a write() that will simply be the system
call, but gcc always wants to talk to libc. Is there a particular reason
that write isn't inlined by gcc, or have I stupidly overlooked something.

tz@execpc.com
finger tz@execpc.com for PGP key


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.061 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site