[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binutils
Subject:    Re: ld -shared support
From:       William Tambe <tambewilliam () gmail ! com>
Date:       2020-02-27 13:23:43
Message-ID: CAF8i9mMMdAUCaZUtMoH4np3AHB8a7c2G_zp8V6h2vxRnPEY00w () mail ! gmail ! com
[Download RAW message or body]

I have enabled the macro elf_backend_create_dynamic_sections in the
elf32-xxxx.c BFD support file and I am able to make progress still
with failures.

Can anyone describe the meaning of enabling the following macros ?

#define elf_backend_rela_normal
#define elf_backend_can_refcount
#define elf_backend_plt_readonly
#define elf_backend_want_got_sym
#define elf_backend_want_plt_sym
#define elf_backend_want_dynrelro
#define elf_backend_got_header_size
#define elf_backend_want_got_plt


On Tue, Feb 25, 2020 at 12:13 PM William Tambe <tambewilliam@gmail.com> wrote:
>
> On Sun, Feb 23, 2020 at 3:44 PM William Tambe <tambewilliam@gmail.com> wrote:
> >
> > I am now able to use ld -shared after using:
> > GENERATE_SHLIB_SCRIPT=yes
> >
> > However when compiling a test shared library using:
> > gcc -shared -o test.so test.c
> > The following error occur:
> > crt0.o: error adding symbols: no error
>
> Any idea ?
>
> >
> > The linker is successfully able to open crt0.o printing the following
> > when using -verbose:
> > attempt to open crt0.o succeeded
> >
> > Any idea what might be missing ?
> >
> > On Sat, Feb 22, 2020 at 11:02 PM William Tambe <tambewilliam@gmail.com> wrote:
> > >
> > > What needs to be done to support -shared in the link-editor ?
> > >
> > > Is there a commit that describe how to support -shared ?
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic