RFA: Generation of additional sections after size_seg
Kai Tietz
ktietz70@googlemail.com
Mon Jun 1 13:44:00 GMT 2009
Hello,
I am working on a patch to generate xdata/pdata section for x64. The
xdata contains offsets relative to the function entry, but it
recomments, that this offset has 1 byte size. If the offset is bigger,
then additional function entries have to be generated (chained
elements) to express this. This leads no to the problem, that I need
to have the .text section already sized to figure out what how
xdata/pdata has to be written. But when I add those sections after the
sizing (in write_object_file), the symbols aren't anymore resolveable.
At least I get always the message "internal error: fixup not contained
within frag".
Possibly somebody could give me a hint on how to solve this. Otherwise
I see no other chance to emit here intermediate content for the linker
and do the generation of those data there, but I would like to avoid
this (as it isn't standard anymore).
Cheers,
Kai
PS: I can post the patch I made so far, if somebody is interested in.
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
More information about the Binutils
mailing list