aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-01-07 16:45:35 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-01-07 16:45:35 +0000
commitace793883816ba44f9c2cb090e8ea5ff159ad9be (patch)
tree42521bfb0c2c65a16935d8524cf416ceb336a50b /bfd/elflink.c
parenta7c02bc8e11894a2c8ac3f834961f214229a4d51 (diff)
downloadgdb-ace793883816ba44f9c2cb090e8ea5ff159ad9be.zip
gdb-ace793883816ba44f9c2cb090e8ea5ff159ad9be.tar.gz
gdb-ace793883816ba44f9c2cb090e8ea5ff159ad9be.tar.bz2
bfd/
2008-01-07 H.J. Lu <hongjiu.lu@intel.com> PR ld/5522 * elflink.c (elf_link_input_bfd): Don't write out a section if its output section is marked with SEC_NEVER_LOAD. ld/testsuite/ 2008-01-07 H.J. Lu <hongjiu.lu@intel.com> PR ld/5522 * ld-elf/noload-3.d: New file. * ld-elf/noload-3.s: Likewise. * ld-elf/noload-3.t: Likewise.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 31c9de9..1d9d574 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -9511,6 +9511,7 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
default:
{
if (! (o->flags & SEC_EXCLUDE)
+ && ! (o->output_section->flags & SEC_NEVER_LOAD)
&& ! bfd_set_section_contents (output_bfd, o->output_section,
contents,
(file_ptr) o->output_offset,