This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RFA: Generation of additional sections after size_seg
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Mon, 1 Jun 2009 15:44:13 +0200
- Subject: RFA: Generation of additional sections after size_seg
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