This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is SYMBOL_REF in code or in data section?
- To: gcc at gcc dot gnu dot org
- Subject: Is SYMBOL_REF in code or in data section?
- From: Adrian von Bidder <avbidder at acter dot ch>
- Date: Tue, 06 Nov 2001 16:33:48 +0100
Heyho!
[This might be specific to the ARM backend, but I'm not sure]
in legitimize_address (specific: ARM, legitimize_pic_address), to
generate addresses the right way I need to determine if the given
symbol_ref represents a symbol in the code or in the data section.
The ARM backend of 2.95 seemed to use SYMBOL_REF_FLAG to this purpose,
but this seems top have disappeared in gcc-3.0.2.
[ The bigger picture: still trying to get the -mdisable-got/-mno-got
patch working for gcc-3.
Btw, the functionality is very close to that of the -membedded-pic
switch on MIPS, but the implementations seem to differ considerable - at
least I could gain nothing from looking through the MIPS sources. But
this similarity makes me wonder if gcc shouldn't implement this feature
architecture independently, say, as -fstatic-base -fbase-register=... or
something like this. ]
greets from Zürich
-- vbi