This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [linker] relaxation question
- From: "M R Swami Reddy" <MR dot Swami dot Reddy at nsc dot com>
- To: "Nick Clifton" <nickc at redhat dot com>
- Cc: "binutils at sources dot redhat dot com" <binutils at sources dot redhat dot com>
- Date: Thu, 30 Jul 2009 15:26:15 +0530
- Subject: Re: [linker] relaxation question
- References: <4A6EEB8C.70102@nsc.com> <4A715AB9.2020708@redhat.com>
Hi Nick,
What should happen is that in the assembler the references from the
.gcc_except_table section to symbols in the .text section are converted
into relocations against those symbols. Then in the linker when
relaxation is performed, (which must be before the relocations are
resolved), any symbols which point into the .text section must be
adjusted as the section is relaxed. That way when the relocations are
eventually resolved in the .gcc_except_table section they will get the
correct values.
Is there any target has adopted the above implementation?
Thanks
Swami