]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: x86-64: Estimate output section layout before sizing dynamic sections
authorAlan Modra <amodra@gmail.com>
Fri, 7 Feb 2025 08:13:00 +0000 (18:43 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 7 Feb 2025 22:59:58 +0000 (09:29 +1030)
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.

ld/emultempl/solaris2.em

index a002b9f56c3de47385e24b23c9d9554ac5dff515..6198a82f24b9c011891ab7f0cbf68250b6251f58 100644 (file)
@@ -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