This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] VAX ELF PIC support.


On Sun, Sep 21, 2003 at 10:41:25PM -0700, Matt Thomas wrote:
> "movl $1, *bar" is an illegal addressing mode when generating PIC
> code since the indirection (*) is reserved to the linker.  Because
> bar can be accessed via a COPY reloc in a shared library ...

But we KNOW that we're not in a shared library.  The user told us
via command-ine options.  That's why we know that the bar that we
have in the current translation unit is the one that MUST be bound
by ld and ld.so.

If VAX ELF is really broken in this way, you should just override
binds_local_p and get it over with.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]