mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
Add a test that relocs are correctly generated for missing build notes.
* testsuite/gas/elf/missing-build-notes.s: New test. Checks that relocs are correctly generated for missing build notes. * testsuite/gas/elf/missing-build-notes.d: New file. Expected output from objdump. * testsuite/gas/elf/elf.exp: Run the new test.
This commit is contained in:
parent
4ef4710f5c
commit
b84f59efc6
@ -1,3 +1,11 @@
|
||||
2018-07-13 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* testsuite/gas/elf/missing-build-notes.s: New test. Checks that
|
||||
relocs are correctly generated for missing build notes.
|
||||
* testsuite/gas/elf/missing-build-notes.d: New file. Expected
|
||||
output from objdump.
|
||||
* testsuite/gas/elf/elf.exp: Run the new test.
|
||||
|
||||
2018-07-13 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* config/tc-arm.c (do_neon_mov): When converting an integer
|
||||
|
@ -244,6 +244,8 @@ if { [is_elf_format] } then {
|
||||
run_dump_test "bad-group"
|
||||
|
||||
run_dump_test "syms"
|
||||
|
||||
run_dump_test "missing-build-notes"
|
||||
|
||||
# hpux has a non-standard common directive.
|
||||
if { ![istarget "*-*-hpux*"] } then {
|
||||
|
14
gas/testsuite/gas/elf/missing-build-notes.d
Normal file
14
gas/testsuite/gas/elf/missing-build-notes.d
Normal file
@ -0,0 +1,14 @@
|
||||
# as: --generate-missing-build-notes=yes
|
||||
# objdump: -r
|
||||
#skip: mips*-*-openbsd
|
||||
|
||||
# Check that the relocations are for increasing addresses...
|
||||
|
||||
#...
|
||||
RELOCATION RECORDS FOR \[.gnu.build.attributes\]:
|
||||
OFFSET[ ]+TYPE[ ]+VALUE
|
||||
0+014 .*[ ]+.*
|
||||
0+0(18|1c) .*[ ]+.*
|
||||
0+0(30|38) .*[ ]+.*
|
||||
0+0(34|40) .*[ ]+.*
|
||||
#pass
|
6
gas/testsuite/gas/elf/missing-build-notes.s
Normal file
6
gas/testsuite/gas/elf/missing-build-notes.s
Normal file
@ -0,0 +1,6 @@
|
||||
.text
|
||||
.dc.l 1
|
||||
|
||||
.section .text.unused,"ax"
|
||||
.dc.l 2
|
||||
|
Loading…
Reference in New Issue
Block a user