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: [rs6000/rfc] -fPIC vs TLS


>>>>> Richard Henderson writes:

First of all, it seems like the existing code for the old
abi is being unnecessarily obtuse.

    bcl	     20,31,2f
1:  .long    _GLOBAL_OFFSET_TABLE_-$
2:  
    mflr	1
    lwz		2,0(1)
    add		3,2,1


PowerPC branch displacement is limited.

    bl _GLOBAL_OFFSET_TABLE_@local-4

restricts the placement of the GOT and the size of the text section while
the former code does not.  I think that is the reason for the more
complicated sequence.  Alan Modra probably can provide more insight.

David


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