mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
Mark .gnu.lto_* sections with SHF_EXCLUDE.
bfd/ 2010-12-12 H.J. Lu <hongjiu.lu@intel.com> * elf.c (special_sections_g): Add ".gnu.lto_". gas/testsuite/ 2010-12-12 H.J. Lu <hongjiu.lu@intel.com> * gas/elf/elf.exp: Run section9. * gas/elf/section9.d: New. * gas/elf/section9.s: Likewise.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf.c (special_sections_g): Add ".gnu.lto_".
|
||||
|
||||
2010-12-10 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
|
||||
|
@ -2082,6 +2082,7 @@ static const struct bfd_elf_special_section special_sections_f[] =
|
||||
static const struct bfd_elf_special_section special_sections_g[] =
|
||||
{
|
||||
{ STRING_COMMA_LEN (".gnu.linkonce.b"), -2, SHT_NOBITS, SHF_ALLOC + SHF_WRITE },
|
||||
{ STRING_COMMA_LEN (".gnu.lto_"), -1, SHT_PROGBITS, SHF_EXCLUDE },
|
||||
{ STRING_COMMA_LEN (".got"), 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
|
||||
{ STRING_COMMA_LEN (".gnu.version"), 0, SHT_GNU_versym, 0 },
|
||||
{ STRING_COMMA_LEN (".gnu.version_d"), 0, SHT_GNU_verdef, 0 },
|
||||
|
@ -1,4 +1,11 @@
|
||||
2010-12-11 Mingming Sun <mingm.sun@gmail.com>
|
||||
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* gas/elf/elf.exp: Run section9.
|
||||
|
||||
* gas/elf/section9.d: New.
|
||||
* gas/elf/section9.s: Likewise.
|
||||
|
||||
2010-12-11 Mingming Sun <mingm.sun@gmail.com>
|
||||
|
||||
* gas/mips/loongson-3a.s, gas/mips/loongson-3a.d: New test.
|
||||
* gas/mips/mips.exp: Run it.
|
||||
|
@ -174,6 +174,7 @@ if { ([istarget "*-*-*elf*"]
|
||||
run_dump_test "section6"
|
||||
run_dump_test "section7"
|
||||
run_dump_test "section8"
|
||||
run_dump_test "section9"
|
||||
run_dump_test "dwarf2-1"
|
||||
run_dump_test "dwarf2-2"
|
||||
run_dump_test "dwarf2-3"
|
||||
|
7
gas/testsuite/gas/elf/section9.d
Normal file
7
gas/testsuite/gas/elf/section9.d
Normal file
@ -0,0 +1,7 @@
|
||||
#readelf: -S --wide
|
||||
#name: section flags
|
||||
|
||||
#...
|
||||
[ ]*\[.*\][ ]+\.gnu\.lto_main[ ]+PROGBITS.*[ ]+E[ ]+.*
|
||||
[ ]*\[.*\][ ]+\.gnu\.lto_\.pureconst[ ]+PROGBITS.*[ ]+E[ ]+.*
|
||||
#pass
|
4
gas/testsuite/gas/elf/section9.s
Normal file
4
gas/testsuite/gas/elf/section9.s
Normal file
@ -0,0 +1,4 @@
|
||||
.section .gnu.lto_main,"",%progbits
|
||||
.byte 0,0,0,0
|
||||
.section .gnu.lto_.pureconst,"",%progbits
|
||||
.byte 0,0,0,0
|
Reference in New Issue
Block a user