PR gold/12880
authorIan Lance Taylor <ian@airs.com>
Sun, 19 Jun 2011 22:09:17 +0000 (22:09 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 19 Jun 2011 22:09:17 +0000 (22:09 +0000)
commite1f74f98236a6ac03824d0f38dd47d34f615c551
tree324a9f57330c5d0c6eb8ecc7a7c4c917ab47c657
parent8b7789423cab57f0adc2a1cb374908d73a2f64b8
PR gold/12880
* layout.cc (Layout::attach_allocated_section_to_segment): Add a
.interp section to a PT_INTERP segment even if we have seen a
--dynamic-linker option.  Don't do it if we have seen a PHDRS
clause in a linker script.
(Layout::finalize): Don't create a .interp section if we've
already create a PT_INTERP segment.
(Layout::create_interp): Always call choose_output_section (revert
patch of 2011-06-17).  Don't create PT_INTERP segment.
* script-sections.cc
(Script_sections::create_note_and_tls_segments): Add a .interp
section to a PT_INTERP segment even if we have seen a
--dynamic-linker option.
gold/ChangeLog
gold/layout.cc
gold/script-sections.cc