[PATCH] elf: Don't make forced local symbol dynamic for PIC outputs
H.J. Lu
hjl.tools@gmail.com
Thu Jun 11 13:23:56 GMT 2020
On Thu, Jun 11, 2020 at 6:07 AM Olivier Hainque <hainque@adacore.com> wrote:
>
> Hello H.J.
>
> > On 10 Jun 2020, at 15:00, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> > Relocatable executables come from VxWorks. Let's ask a VxWorks
> > expert. Olivier, does VxWorks require local and section symbols dynamic
> > for position independent outputs, like PIE or shared library?
>
> I don't think so. At least on ppc vx6 and vx7 + arm vx6,
> the system toolchain doesn't do that.
>
> But AFAICS, is_relocatable_executable in binutils is
> not a VxWorks thing. It seems to be more a SymbianOS thing.
>
> There are very few places where the flag is set. One of them
> is elf32_arm_symbian_link_hash_table_create, and if I'm not
> mistaken, the flag was introduced from
>
> https://sourceware.org/legacy-ml/binutils/2005-02/msg00174.html
>
> which starts with
>
> "arm-*-symbianelf executables are relocatable.
> This has a few implications:"
Does SymbianOS run on tic6x?
commit ac14530735340ebde54e9d536e3a0fd3e82f36db
Author: Bernd Schmidt <bernds@codesourcery.com>
Date: Thu Mar 31 08:58:28 2011 +0000
include/elf/
* tic6x.h (R_C6000_JUMP_SPLOT, R_C6000_EHTYPE,
R_C6000_PCR_H16, R_C6000_PCR_L16): New relocs.
(SHN_TIC6X_SCOMMON): Define.
added is_relocatable_executable for tic6x. Bernd, is it required?
--
H.J.
More information about the Binutils
mailing list