From ace793883816ba44f9c2cb090e8ea5ff159ad9be Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 7 Jan 2008 16:45:35 +0000 Subject: bfd/ 2008-01-07 H.J. Lu 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 PR ld/5522 * ld-elf/noload-3.d: New file. * ld-elf/noload-3.s: Likewise. * ld-elf/noload-3.t: Likewise. --- bfd/ChangeLog | 6 ++++++ bfd/elflink.c | 1 + 2 files changed, 7 insertions(+) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ccb34b7..ef3fc9f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2008-01-07 H.J. Lu + + 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. + For older changes see ChangeLog-2007 Local Variables: 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, -- cgit v1.1