PR 4479
* objcopy.c (copy_object): Don't copy ELF program headers for --only-keep-debug.
This commit is contained in:
parent
1aafd4da21
commit
8adb2e35e2
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-05-11 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
PR 4479
|
||||||
|
* objcopy.c (copy_object): Don't copy ELF program headers for
|
||||||
|
--only-keep-debug.
|
||||||
|
|
||||||
2007-05-11 Alan Modra <amodra@bigpond.net.au>
|
2007-05-11 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* embedspu.sh (find_prog): Prefer prog in same dir as embedspu
|
* embedspu.sh (find_prog): Prefer prog in same dir as embedspu
|
||||||
|
|
|
@ -1423,6 +1423,11 @@ copy_object (bfd *ibfd, bfd *obfd)
|
||||||
any output is done. Thus, we traverse all sections multiple times. */
|
any output is done. Thus, we traverse all sections multiple times. */
|
||||||
bfd_map_over_sections (ibfd, setup_section, obfd);
|
bfd_map_over_sections (ibfd, setup_section, obfd);
|
||||||
|
|
||||||
|
/* Don't copy headers when creating an ELF format debug info file. */
|
||||||
|
if (bfd_get_flavour (ibfd) == bfd_target_elf_flavour
|
||||||
|
&& strip_symbols == STRIP_NONDEBUG)
|
||||||
|
;
|
||||||
|
else
|
||||||
setup_bfd_headers (ibfd, obfd);
|
setup_bfd_headers (ibfd, obfd);
|
||||||
|
|
||||||
if (add_sections != NULL)
|
if (add_sections != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue