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: -mrelocatable broken on ppc-linux


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


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