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: update dwarf2 asm unwind info [hppa64-*-* failures]


John David Anglin wrote:
I'll look at this. There isn't a direct to generate SEGREL relocations
although it looks easy to tweak gas to do it (DIR64 relocations could
be converted to SEGREL64 in .eh_frame).

I strongly discourage converting relocations based on the section. The fact that this already happens for DIR32 I think is a mistake. You should instead use a special directive (like alpha's .gprel) or annotations next to the symbol (like ia64's @segrel(foo)).

> It's not clear to me how the segment base would be recorded.

From my scant reading of include/elf/hppa.h, it appears that the
"segments" are not really related to what we think of as the runtime
segments at all, but are specified to the linker with the
R_PARISC_SEGBASE relocation.  So you can pick some well-known
system symbol such as _text and use that.  Hopefully there's some
symbol that exists for both programs and shared libraries.


r~



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