summaryrefslogtreecommitdiffstats
path: root/debian/patches/t-libunwind-elf-Wl-z-defs.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:58:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:58:36 +0000
commit1d3b23e6bdbf53eb74161c37d8c355c2ec858a19 (patch)
treee279a67ec4f447e99b0754e7964666f7b48b5c05 /debian/patches/t-libunwind-elf-Wl-z-defs.diff
parentAdding upstream version 14-20240201. (diff)
downloadgcc-14-1d3b23e6bdbf53eb74161c37d8c355c2ec858a19.tar.xz
gcc-14-1d3b23e6bdbf53eb74161c37d8c355c2ec858a19.zip
Adding debian version 14-20240201-3.debian/14-20240201-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/t-libunwind-elf-Wl-z-defs.diff')
-rw-r--r--debian/patches/t-libunwind-elf-Wl-z-defs.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/t-libunwind-elf-Wl-z-defs.diff b/debian/patches/t-libunwind-elf-Wl-z-defs.diff
new file mode 100644
index 0000000..082d4d5
--- /dev/null
+++ b/debian/patches/t-libunwind-elf-Wl-z-defs.diff
@@ -0,0 +1,13 @@
+# DP: strip -z,defs from linker options for internal libunwind.
+
+--- a/src/libgcc/config/t-libunwind-elf
++++ b/src/libgcc/config/t-libunwind-elf
+@@ -31,7 +31,7 @@ SHLIBUNWIND_SONAME = @shlib_base_name@.s
+
+ SHLIBUNWIND_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared \
+ -nodefaultlibs -Wl,-h,$(SHLIBUNWIND_SONAME) \
+- -Wl,-z,text -Wl,-z,defs -o $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).tmp \
++ -Wl,-z,text -o $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).tmp \
+ @multilib_flags@ $(SHLIB_OBJS) -lc && \
+ rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \
+ if [ -f $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) ]; then \