[PATCH] ld: ensure build-id is placed near ELF headers
H.J. Lu
hjl.tools@gmail.com
Thu Sep 19 20:29:30 GMT 2024
On Thu, Sep 19, 2024 at 11:52 PM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi Andrew,
>
> I have now checked in the patch. (commit bf6d7087de0a7351fd1dfd5f41522a7f4f576180)
>
> In the end I went for a more wordy but also more likely to be correct
> syntax for the conditional for emitting the text segment alignment
> code:
>
> + # We only need the alignment if we have emitted some sections.
> + if test -z "${SEPARATE_CODE}"; then
> + align_text
> + elif test -z "${NON_ALLOC_DYN}${SEPARATE_CODE}"; then
> + align_text
> + fi
>
> Cheers
> Nick
>
This caused:
https://sourceware.org/bugzilla/show_bug.cgi?id=32190
--
H.J.
More information about the Binutils
mailing list