mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
9ef5d93881
It is a good pratice to set the SHF_INFO_LINK bit when the sh_info field represents a section header index. bfd/ PR binutils/16317 * elf.c (assign_section_numbers): Set the SHF_INFO_LINK bit for SHT_REL/SHT_RELA sections when setting the sh_info field. binutils/testsuite/ PR binutils/16317 * binutils-all/readelf.s: Updated. * binutils-all/readelf.s-64: Likewise. ld/testsuite/ PR binutils/16317 * ld-elf/linkinfo1.s: New file. * ld-elf/linkinfo1a.d: Likewise. * ld-elf/linkinfo1b.d: Likewise.
24 lines
950 B
Plaintext
24 lines
950 B
Plaintext
There are .* section headers, starting at offset .*:
|
|
|
|
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
|
|
+00000000000000.. +0000000000000000 +AX +0 +0 +.*
|
|
+\[ 2\] .rel.+text +REL. +0+ +0+.*
|
|
+000000000000001. +000000000000001. +I +. +1 +8
|
|
+\[ 3\] .data +PROGBITS +0000000000000000 +000000(48|50)
|
|
+000000000000000[48] +0000000000000000 +WA +0 +0 +.*
|
|
+\[ 4\] .bss +NOBITS +0000000000000000 +000000(4c|50|54|58)
|
|
+0000000000000000 +0000000000000000 +WA +0 +0 +.*
|
|
+\[ 5\] .shstrtab +STRTAB +0000000000000000 +000000(4c|50|54|58)
|
|
+00000000000000.. +0000000000000000 +0 +0 +.*
|
|
+\[ 6\] .symtab +SYMTAB +0000000000000000 +0+.*
|
|
+0+.* +0000000000000018 +7 +6 +8
|
|
+\[ 7\] .strtab +STRTAB +0000000000000000 +0+.*
|
|
+0+.* +0000000000000000 +0 +0 +1
|
|
Key to Flags:
|
|
#...
|