From: Alan Modra Date: Fri, 7 Feb 2025 08:13:00 +0000 (+1030) Subject: Re: x86-64: Estimate output section layout before sizing dynamic sections X-Git-Tag: binutils-2_45~1652 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1240a108069ec8ad8c3ee621ced2d5162e7132b3;p=thirdparty%2Fbinutils-gdb.git Re: x86-64: Estimate output section layout before sizing dynamic sections Commit 73ab3b9825 results in a warning compiling eelf_x86_64_sol2.c, breaking --enable-targets=all builds. warning: ‘elf_x86_64_before_allocation’ defined but not used Fix this by hooking up the chain of before_allocation functions, so x86_64-solaris2 calls elf_x86_64_before_allocation, while sparc64-solaris2 calls gldelf64_sparc_sol2_before_allocation. --- diff --git a/ld/emultempl/solaris2.em b/ld/emultempl/solaris2.em index a002b9f56c3..6198a82f24b 100644 --- a/ld/emultempl/solaris2.em +++ b/ld/emultempl/solaris2.em @@ -135,7 +135,7 @@ elf_solaris2_before_allocation (void) basever->vernum = 0; } - gld${EMULATION_NAME}_before_allocation (); + ${LDEMUL_BEFORE_ALLOCATION-gld${EMULATION_NAME}_before_allocation} (); } EOF