diff options
author | Roland McGrath <mcgrathr@google.com> | 2013-11-19 10:54:00 -0800 |
---|---|---|
committer | Roland McGrath <mcgrathr@google.com> | 2013-11-19 10:54:00 -0800 |
commit | c2763e270c6627e55ac7a75ed3c0a717fbca9bd0 (patch) | |
tree | 832667bc181fa2fc7640c1a1e5084b86261ace12 /ld/testsuite/ld-mips-elf | |
parent | 03e621be975dacc9cec9f5782698bdb098f6a49c (diff) | |
download | gdb-c2763e270c6627e55ac7a75ed3c0a717fbca9bd0.zip gdb-c2763e270c6627e55ac7a75ed3c0a717fbca9bd0.tar.gz gdb-c2763e270c6627e55ac7a75ed3c0a717fbca9bd0.tar.bz2 |
Fix references to __ehdr_start when it cannot be defined
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Don't use bfd_elf_record_link_assignment to mark __ehdr_start
hidden. Instead, just do it directly here, and only if it was
referenced but not defined.
ld/testsuite/
* ld-elf/ehdr_start-userdef.t: New file.
* ld-elf/ehdr_start-userdef.d: New file.
* ld-elf/ehdr_start-strongref.s: New file.
* ld-elf/ehdr_start-missing.t: New file.
* ld-elf/ehdr_start-missing.d: New file.
* ld-elf/ehdr_start-weak.d: New file.
* ld-mips-elf/ehdr_start-2.nd: Expect __ehdr_start to be global.
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
-rw-r--r-- | ld/testsuite/ld-mips-elf/ehdr_start-2.nd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-mips-elf/ehdr_start-2.nd b/ld/testsuite/ld-mips-elf/ehdr_start-2.nd index 986c2a2..0a6c06e 100644 --- a/ld/testsuite/ld-mips-elf/ehdr_start-2.nd +++ b/ld/testsuite/ld-mips-elf/ehdr_start-2.nd @@ -1,4 +1,4 @@ Symbol table '\.symtab' contains [0-9]+ entries: #... - *[0-9]+: 0*23400000 +0 (?:NOTYPE|OBJECT) +LOCAL +DEFAULT +[0-9]+ __ehdr_start + *[0-9]+: 0*23400000 +0 (?:NOTYPE|OBJECT) +GLOBAL +DEFAULT +[0-9]+ __ehdr_start #pass |