2
0
mirror of https://github.com/bebbo/amigaos-cross-toolchain.git synced 2025-12-08 22:38:24 +00:00
Files
amigaos-cross-toolchain6/patches/binutils-2.9.1/binutils/objcopy.c.diff
2012-02-13 22:48:58 -08:00

13 lines
487 B
Diff

--- binutils-2.9.1/binutils/objcopy.c Fri May 1 08:49:34 1998
+++ binutils-2.9.1/binutils/objcopy.c Sun Aug 23 00:00:00 1998
@@ -1242,7 +1242,8 @@ copy_section (ibfd, isection, obfdarg)
if (size == 0 || osection == 0)
return;
- if (strip_symbols == strip_all)
+ /* Never, ever, strip reloc data on the Amiga! */
+ if (strip_symbols == strip_all && bfd_get_flavour(obfd) != bfd_target_amiga_flavour)
bfd_set_reloc (obfd, osection, (arelent **) NULL, 0);
else
{