mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
1999-06-30 Ian Lance Taylor <ian@zembu.com>
|
||||||
|
|
||||||
|
* elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
|
||||||
|
relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
|
||||||
|
|
||||||
1999-06-04 Philip Blundell <philb@gnu.org>
|
1999-06-04 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
* elf32-arm.h (elf_backend_got_header_size): Define.
|
* elf32-arm.h (elf_backend_got_header_size): Define.
|
||||||
|
@ -4175,11 +4175,12 @@ mips_elf_final_link (abfd, info)
|
|||||||
/* If all the things we linked together were PIC, but we're
|
/* If all the things we linked together were PIC, but we're
|
||||||
producing an executable (rather than a shared object), then the
|
producing an executable (rather than a shared object), then the
|
||||||
resulting file is CPIC (i.e., it calls PIC code.) */
|
resulting file is CPIC (i.e., it calls PIC code.) */
|
||||||
if (!info->shared && elf_elfheader (abfd)->e_flags & EF_MIPS_PIC)
|
if (!info->shared
|
||||||
|
&& !info->relocateable
|
||||||
|
&& elf_elfheader (abfd)->e_flags & EF_MIPS_PIC)
|
||||||
{
|
{
|
||||||
elf_elfheader (abfd)->e_flags &= ~EF_MIPS_PIC;
|
elf_elfheader (abfd)->e_flags &= ~EF_MIPS_PIC;
|
||||||
elf_elfheader (abfd)->e_flags |= EF_MIPS_CPIC;
|
elf_elfheader (abfd)->e_flags |= EF_MIPS_CPIC;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On IRIX5, we omit the .options section. On IRIX6, however, we
|
/* On IRIX5, we omit the .options section. On IRIX6, however, we
|
||||||
|
Reference in New Issue
Block a user