[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/22221] add --no-dynamic-linker option
From: |
i at maskray dot me |
Subject: |
[Bug gold/22221] add --no-dynamic-linker option |
Date: |
Wed, 28 Jul 2021 22:49:21 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22221
Fangrui Song <i at maskray dot me> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |i at maskray dot me
--- Comment #5 from Fangrui Song <i at maskray dot me> ---
Lack of --no-dynamic-linker makes gold unable to build glibc in
--enable-static-pie mode
mkdir -p out/gold
cd out/gold
../../configure --prefix=/tmp/glibc/gold --enable-static-pie
>From ld.lld's experience, supporting the option is just a matter of:
https://github.com/llvm/llvm-project/commit/0fbf28f7aae0ceb70071cac56de345e3ff04439c
suppressing dynamic relocations for undefined weak symbols more aggressively.
I have a summary about the linker behaviors in
https://maskray.me/blog/2021-04-25-weak-symbol
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/22221] add --no-dynamic-linker option,
i at maskray dot me <=