bash-3.1$ make touch x.s as -o x.o x.s readelf -S x.o There are 7 section headers, starting at offset 0x70:
Section Headers: [Nr] Name Type Address Offset Size EntSize Flags Link Info Align [ 0] NULL 0000000000000000 00000000 0000000000000000 0000000000000000 0 0 0 [ 1] .text PROGBITS 0000000000000000 00000040 0000000000000000 0000000000000000 AX 0 0 4 [ 2] .data PROGBITS 0000000000000000 00000040 0000000000000000 0000000000000000 WA 0 0 4 [ 3] .bss NOBITS 0000000000000000 00000040 0000000000000000 0000000000000000 WA 0 0 4 [ 4] .shstrtab STRTAB 0000000000000000 00000040 000000000000002c 0000000000000000 0 0 1 [ 5] .symtab SYMTAB 0000000000000000 00000230 0000000000000060 0000000000000018 6 4 8 [ 6] .strtab STRTAB 0000000000000000 00000290 0000000000000001 0000000000000000 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) strip -R .text -R .data -R .bss x.o -o y.o strip: there are no sections to be copied! make: *** [y.o] Error 1 I don't think strip should complain here. -- Summary: strip can't strip sections Product: binutils Version: 2.18 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl at lucon dot org CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=4348 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-binutils