diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-04-22 05:25:25 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-04-22 05:25:25 -0700 |
commit | 4cbe42ea236bce32da4262f6f12328b58bac8f0f (patch) | |
tree | 53953e5797a50d9218a795544eca4f93d1f82746 /ld/emultempl/hppaelf.em | |
parent | 6645479e9dc9470d22393d5bc4ef2ef2d391e848 (diff) | |
download | gdb-4cbe42ea236bce32da4262f6f12328b58bac8f0f.zip gdb-4cbe42ea236bce32da4262f6f12328b58bac8f0f.tar.gz gdb-4cbe42ea236bce32da4262f6f12328b58bac8f0f.tar.bz2 |
Add a fake bfd to hold linker created dynamic sectionsusers/hjl/dynobj
Currently, we hold linker created dynamic sections in an input shared
object, which has its own dynamic sections, when the first input file
from linker is a shared object. It may lead to conflicts between
linker created dynamic sections and shared object's dynamic sections.
We can use a a fake bfd to hold linker created dynamic sections.
Unfortunately, it doesn't work due to BFD_LINKER_CREATED. Dynamic
sections in bfd with BFD_LINKER_CREATED may be ignored.
Diffstat (limited to 'ld/emultempl/hppaelf.em')
-rw-r--r-- | ld/emultempl/hppaelf.em | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/emultempl/hppaelf.em b/ld/emultempl/hppaelf.em index a1d2e80..5965e9b 100644 --- a/ld/emultempl/hppaelf.em +++ b/ld/emultempl/hppaelf.em @@ -88,6 +88,8 @@ hppaelf_create_output_section_statements (void) stub_file->the_bfd->flags |= BFD_LINKER_CREATED; ldlang_add_file (stub_file); + + gld${EMULATION_NAME}_create_output_section_statements (); } |