This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: [RFA] ARM OABI - pc-relative relocations


Jerome Guitton <guitton@act-europe.fr> writes:

> Zack Weinberg (zack@codesourcery.com):
>
>> My experience is that their linker and loader do honor the instruction
>> addend if it's nonzero, but their assembler doesn't ever set it to
>> anything but zero.  So setting it to zero in the assembler, and
>> ignoring it in the linker, is good enough for interoperability.  I
>
> I don't think it is always true. For example, if I compile the
> program I sent with the Tornado tools(*), with dwarf2 debug info, I
> have an interesting result for the reloc of .debug_info:
...

Interesting.  I admit I was only looking at text sections.

>> agree that honoring the letter of the old-ABI spec might be desirable,
>> but I don't have time to figure out how at the moment, or how to make
>> that play nice with the revision to the spec that eliminates this
>> quirk.
>
> Your patch follows the old-ABI spec, as the src_masks of the relocs
> are not null :-)

But does the linker properly compute the combined addend?

zw


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