gas: elf/bad-group testcase
Jan Beulich
jbeulich@suse.com
Thu May 5 11:07:48 GMT 2022
On 05.05.2022 12:48, Alan Modra wrote:
> On Thu, May 05, 2022 at 10:48:47AM +0200, Jan Beulich wrote:
>> Hello,
>>
>> I'm trying to understand what this testcase is actually testing.
>
> https://sourceware.org/pipermail/binutils/2011-August/073809.html
Thanks. I read this to mean it's entirely uninteresting what kind of
error there was. And I've meanwhile figured that the specific error
here, which presumably most targets get to see (x86 does), disappeared
for targets setting TC_FINALIZE_SYMS_BEFORE_SIZE_SEG to zero. This is
because that error would only be seen if S_GET_VALUE() in
cvt_frag_to_fill()'s processing of rs_leb128 runs with finalize_syms
already set to 1; the same expression wouldn't be evaluated another
time later anymore (and hence the error has no chance of surfacing).
I have to admit that I find this quite strange. But I could also see
this being an interaction between leb128 processing (which has some
further anomalies anyway) and TC_FINALIZE_SYMS_BEFORE_SIZE_SEG == 0
which so far simply has been overlooked.
Jan
More information about the Binutils
mailing list