aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-01-23 19:35:11 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-01-23 19:35:11 +0000
commit3cbe19d280a518d398ff331eb9e8fdf829d2e6c4 (patch)
tree742f119b8dbedffd2c4806665996ce5f33f227ba /bfd/elf32-ppc.c
parent5eb83edeab1c240df741cb3eb5c3533ae12e482d (diff)
downloadgdb-3cbe19d280a518d398ff331eb9e8fdf829d2e6c4.zip
gdb-3cbe19d280a518d398ff331eb9e8fdf829d2e6c4.tar.gz
gdb-3cbe19d280a518d398ff331eb9e8fdf829d2e6c4.tar.bz2
Do not complain if some objects have the embedded bit set and others do not.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r--bfd/elf32-ppc.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index a7be7a1..9750442 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -1134,26 +1134,12 @@ ppc_elf_merge_private_bfd_data (ibfd, obfd)
else if ((new_flags & EF_PPC_RELOCATABLE_LIB) != 0)
elf_elfheader (obfd)->e_flags |= EF_PPC_RELOCATABLE_LIB;
- new_flags &= ~ (EF_PPC_RELOCATABLE | EF_PPC_RELOCATABLE_LIB);
- old_flags &= ~ (EF_PPC_RELOCATABLE | EF_PPC_RELOCATABLE_LIB);
- /* Warn about eabi vs. V.4 mismatch */
- if ((new_flags & EF_PPC_EMB) != 0 && (old_flags & EF_PPC_EMB) == 0)
- {
- new_flags &= ~EF_PPC_EMB;
- error = true;
- (*_bfd_error_handler)
- ("%s: compiled for the eabi and linked with modules compiled for System V",
- bfd_get_filename (ibfd));
- }
- else if ((new_flags & EF_PPC_EMB) == 0 && (old_flags & EF_PPC_EMB) != 0)
- {
- old_flags &= ~EF_PPC_EMB;
- error = true;
- (*_bfd_error_handler)
- ("%s: compiled for System V and linked with modules compiled for eabi",
- bfd_get_filename (ibfd));
- }
+ /* Do not warn about eabi vs. V.4 mismatch, just or in the bit if any module uses it */
+ elf_elfheader (obfd)->e_flags |= (new_flags & EF_PPC_EMB);
+
+ new_flags &= ~ (EF_PPC_RELOCATABLE | EF_PPC_RELOCATABLE_LIB | EF_PPC_EMB);
+ old_flags &= ~ (EF_PPC_RELOCATABLE | EF_PPC_RELOCATABLE_LIB | EF_PPC_EMB);
/* Warn about any other mismatches */
if (new_flags != old_flags)