aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/comm-data1.sd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-04-21 19:14:10 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-04-21 19:14:28 -0700
commit6cd255ca1f03550291bd05ac4548e383bca88c5f (patch)
tree398c9090596855d682841cae69ddfc1a6bc4f2b0 /ld/testsuite/ld-elf/comm-data1.sd
parent22522f880a8e17a17c4f195796ec89caece7652b (diff)
downloadgdb-6cd255ca1f03550291bd05ac4548e383bca88c5f.zip
gdb-6cd255ca1f03550291bd05ac4548e383bca88c5f.tar.gz
gdb-6cd255ca1f03550291bd05ac4548e383bca88c5f.tar.bz2
Set dynobj to a normal input file if possible
When check_relocs is called after gc-sections has run, _bfd_elf_link_create_dynstrtab may be called with an dynamic object and hash_table->dynobj may be NULL. We may not set dynobj, an input file holding linker created dynamic sections to the dynamic object, which has its own dynamic sections. We need to find a normal input file to hold linker created sections if possible. Otherwise ld will crash during LTO input rescan when linker created dynamic section overrides input dynamic section. * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a normal input file if possible.
Diffstat (limited to 'ld/testsuite/ld-elf/comm-data1.sd')
0 files changed, 0 insertions, 0 deletions