mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 08:47:28 +00:00
While for executables properly aligning sections within the file can be quite relevant, the same is of pretty little importance for relocatable object files. Avoid passing "true" into _bfd_elf_assign_file_position_for_section() when dealing with object files, but compensate minimally by applying log_file_align in such cases as a cap to the alignment put in place.
19 lines
770 B
Makefile
19 lines
770 B
Makefile
#PROG: strip
|
|
#source: compressed-1.s
|
|
#as: --32 --compress-debug-sections -mx86-used-note=no --gdwarf-3
|
|
#strip:
|
|
#readelf: -S --wide
|
|
#name: strip on compressed debug sections
|
|
|
|
There are 5 section headers, starting at offset 0x[0-9a-f]+:
|
|
|
|
Section Headers:
|
|
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
\[ 1\] .text PROGBITS 00000000 0000.. 00001b 00 AX 0 0 16
|
|
\[ 2\] .data PROGBITS 00000000 0000.. 000000 00 WA 0 0 1
|
|
\[ 3\] .bss NOBITS 00000000 0000.. 000000 00 WA 0 0 1
|
|
\[ 4\] .shstrtab STRTAB 00000000 0000.. 00001c 00 .. 0 0 1
|
|
Key to Flags:
|
|
#...
|