This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -mrelocatable broken on ppc-linux
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: jakub at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Jan 2004 15:35:18 +1030
- Subject: Re: -mrelocatable broken on ppc-linux
- References: <20040121031453.GA3606@redhat.com>
On Tue, Jan 20, 2004 at 11:14:53PM -0400, Aldy Hernandez wrote:
> The biarch patch broke -mrelocatable for powerpc-linux-gnu*:
Hmm. That bit may have snuck in by accident. Jakub's justification for
#undef'ing RELOCATABLE_NEEDS_FIXUP was that powerpc-linux linker scripts
throw away .fixup anyway.
See http://gcc.gnu.org/ml/gcc-patches/2003-02/msg00494.html
I guess the fact that .fixup is thrown away isn't a really good reason
anyway, given that users can provide their own linker scripts.
> diff -c -p -r1.39 linux.h
> *** config/rs6000/linux.h 4 Jun 2003 16:44:51 -0000 1.39
> --- config/rs6000/linux.h 21 Jan 2004 03:07:20 -0000
> ***************
> *** 83,91 ****
> #undef TARGET_64BIT
> #define TARGET_64BIT 0
>
> - /* We don't need to generate entries in .fixup. */
> - #undef RELOCATABLE_NEEDS_FIXUP
> -
> #define ASM_FILE_END(FILE) \
> do { \
> named_section_flags (".note.GNU-stack", \
> --- 83,88 ----
Well, that fixes the problem for powerpc-linux-gcc, but not for
powerpc64-linux-gcc -m32
--
Alan Modra
IBM OzLabs - Linux Technology Centre