diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-12-12 14:49:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-12-12 14:49:25 +0000 |
commit | 68efed4197a833bbc5ca02116098e6f67a2608d6 (patch) | |
tree | d2d96493d68329b71ece5e25e331a50898d829d9 /gas | |
parent | 97e84e2551f3aee29f7a9efbda3c4fb18415b6bb (diff) | |
download | gdb-68efed4197a833bbc5ca02116098e6f67a2608d6.zip gdb-68efed4197a833bbc5ca02116098e6f67a2608d6.tar.gz gdb-68efed4197a833bbc5ca02116098e6f67a2608d6.tar.bz2 |
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section9.d | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section9.s | 4 |
4 files changed, 20 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 8b4e801..8592bf0 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -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. diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index 3babe0b..7f86266 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -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" diff --git a/gas/testsuite/gas/elf/section9.d b/gas/testsuite/gas/elf/section9.d new file mode 100644 index 0000000..1acf63e --- /dev/null +++ b/gas/testsuite/gas/elf/section9.d @@ -0,0 +1,7 @@ +#readelf: -S --wide +#name: section flags + +#... +[ ]*\[.*\][ ]+\.gnu\.lto_main[ ]+PROGBITS.*[ ]+E[ ]+.* +[ ]*\[.*\][ ]+\.gnu\.lto_\.pureconst[ ]+PROGBITS.*[ ]+E[ ]+.* +#pass diff --git a/gas/testsuite/gas/elf/section9.s b/gas/testsuite/gas/elf/section9.s new file mode 100644 index 0000000..6b8b107 --- /dev/null +++ b/gas/testsuite/gas/elf/section9.s @@ -0,0 +1,4 @@ + .section .gnu.lto_main,"",%progbits + .byte 0,0,0,0 + .section .gnu.lto_.pureconst,"",%progbits + .byte 0,0,0,0 |