bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/32491] [2.44 Regression] ld-elf/compress.exp test failures on ar


From: thiago.bauermann at linaro dot org
Subject: [Bug ld/32491] [2.44 Regression] ld-elf/compress.exp test failures on arm-linux-gnueabi*
Date: Fri, 27 Dec 2024 22:08:23 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=32491

--- Comment #9 from Thiago Jung Bauermann <thiago.bauermann at linaro dot org> 
---
(In reply to Thiago Jung Bauermann from comment #6)
> Maybe the gas change surfaced a latent bug in ld?

It actually surfaced a latent bug in GCC's configure script: the fact that
commit d5cbf916be4a ("gas/ELF: also reject merge entity size being zero")
caused gas to be stricter about mergeable sections without an entity size
meant that GCC's configure had to use a fallback to detect whether the
assembler supports section merging, and the fallback didn't work.

This made GCC avoid putting debug strings in the .debug_str section, which
caused it to generte a begin.o file with an empty .debug_str section.  This
in turn prompted ld to complain about an "invalid operation" when asked to
compress an empty section.

IOW an improvement in gas caused GCC to change behaviour, leading to an
error in ld. Rube Goldberg would be proud. 🙂

I just posted a fix here:

https://inbox.sourceware.org/gcc-patches/20241227214756.1059146-1-thiago.bauermann@linaro.org/

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]