This is the mail archive of the
mailing list for the binutils project.
Re: ld corrupting .cfi_label uses
- From: "Jan Beulich" <JBeulich at suse dot com>
- To: "Alan Modra" <amodra at gmail dot com>
- Cc: <binutils at sourceware dot org>
- Date: Wed, 08 Mar 2017 07:33:07 -0700
- Subject: Re: ld corrupting .cfi_label uses
- Authentication-results: sourceware.org; auth=none
- References: <58B04B47020000780013D936@prv-mh.provo.novell.com> <20170226234208.GA12547@bubble.grove.modra.org> <58B9394D020000780013FA0C@prv-mh.provo.novell.com> <20170308141215.GU4895@bubble.grove.modra.org>
>>> On 08.03.17 at 15:12, <email@example.com> wrote:
> On Fri, Mar 03, 2017 at 01:37:17AM -0700, Jan Beulich wrote:
>> My problem here is that I don't see any way to know whether
>> there are symbols (including local ones, but excluding the
>> section one) or relocations referring to a particular section
>> (other than going through the raw object file of course), for
>> easy checking in _bfd_elf_write_section_eh_frame(), or
>> even better already in _bfd_elf_parse_eh_frame_entry().
> Here's a prototype patch. It hasn't had much testing, and needs a few
> testcases added, particularly for labels in odd parts of a CIE or FDE.
> If you could run with this, that would be good.
Thanks for doing this, but going over the patch I can't seem to spot
where (generally section symbol relative) relocations are being
taken care of. Am I simply overlooking something? I ask because
that's the main problem for my use case, whereas symbols don't
really matter for the moment (I simply didn't have a need to create
any so far).
And then, for the ld test case source adjustments, how do these do
anything useful with no test case output adjustments being needed?