[PATCH] ld: ensure build-id is placed near ELF headers
Nick Clifton
nickc@redhat.com
Thu Sep 19 15:51:34 GMT 2024
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
More information about the Binutils
mailing list