https://sourceware.org/bugzilla/show_bug.cgi?id=1
Fangrui Song changed:
What|Removed |Added
CC||i at maskray dot me
--- Comment #5 fro
https://sourceware.org/bugzilla/show_bug.cgi?id=1
--- Comment #4 from Markus Trippelsdorf ---
(In reply to Cary Coutant from comment #3)
> I'm not sure I understand exactly what this option is for. If "-static -pie"
> will produce a static-pie executable, wouldn't such an executable already
>
https://sourceware.org/bugzilla/show_bug.cgi?id=1
--- Comment #3 from Cary Coutant ---
I'm not sure I understand exactly what this option is for. If "-static -pie"
will produce a static-pie executable, wouldn't such an executable already lack
a dynamic linker? That's (part of) what -static do
https://sourceware.org/bugzilla/show_bug.cgi?id=1
--- Comment #2 from Markus Trippelsdorf ---
The following produces an static-pie executable that crashes on startup
when it calls __pthread_initialize_minimal():
diff --git a/gold/gold.cc b/gold/gold.cc
index a76d155f940a..a2dd31816acc 10
https://sourceware.org/bugzilla/show_bug.cgi?id=1
--- Comment #1 from Markus Trippelsdorf ---
So perhaps:
diff --git a/gold/layout.cc b/gold/layout.cc
index 5f25faea5532..4fe4d6825223 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -2749,7 +2749,8 @@ Layout::finalize(const Input_objects*