Skip to content

Commit 5958274

Browse files
committed
Tools.gmk: Add --enable-linker-build-id to gcc build
This causes --build-id to be passed to the linker, and the .note.gnu.build-id section is added (OPENJDK-3068)
1 parent c370e11 commit 5958274

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

make/devkit/Tools.gmk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,8 @@ endif
539539
# skip native language.
540540
# and link and assemble with the binutils we created
541541
# earlier, so --with-gnu*
542+
# Add --enable-linker-build-id so the .note.gnu.build-id
543+
# section is added by the linker (OPENJDK-3068)
542544
$(BUILDDIR)/$(gcc_ver)/Makefile \
543545
: $(GCC_CFG)
544546
$(info Configuring $@. Log in $(@D)/log.config)
@@ -557,6 +559,7 @@ $(BUILDDIR)/$(gcc_ver)/Makefile \
557559
--with-mpfr=$(PREFIX) \
558560
--with-gmp=$(PREFIX) \
559561
--with-mpc=$(PREFIX) \
562+
--enable-linker-build-id \
560563
) 2>&1 | tee $(@D)/log.config
561564
@echo 'done'
562565

0 commit comments

Comments
 (0)