bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/32580] [2.44 regression] Non-bash shell breaks many default link


From: ro at CeBiTec dot Uni-Bielefeld.DE
Subject: [Bug ld/32580] [2.44 regression] Non-bash shell breaks many default linker scripts
Date: Tue, 21 Jan 2025 15:26:04 +0000

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

--- Comment #1 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> I'm still trying to figure out what exactly caused this.  So far I've found
> that the the problem started with
>
> commit fe217087a4b8aa214a221ca9f033c5fcdbcee90e
> Author: Nick Clifton <nickc@redhat.com>
> Date:   Wed Nov 27 11:23:38 2024 +0000
>
>     Tidy up the default ELF linker script
>
> One thing I noticed is that in two places (emit_noinit, emit_persistent)
> the cat <<EOF construct has trailing whitespace.   However, this doesn't seem
> to be the problem.

Found it, though I don't understand why this is a problem: by bisecting
the contents of emit_data, which emits the missing script snippet
starting from /* Exception handling.  */, I found that the call to
align_to_default_symbol_alignment at the end of the function causes the
problem.

Either inlining it here (ugly) or (better) moving it to the caller fixes
the problem.  I see that this has already been done for the second call
to align_to_default_symbol_alignment in the body of elf.sc, without an
explanation for the difference.

-- 
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]