[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/11413] --no-export-dynamic broken for PIE?
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug ld/11413] --no-export-dynamic broken for PIE? |
Date: |
21 Mar 2010 19:26:22 -0000 |
------- Additional Comments From hjl dot tools at gmail dot com 2010-03-21
19:26 -------
This patch works for me:
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 8f6b5f4..98ea753 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -1715,7 +1715,7 @@ _bfd_elf_add_default_symbol (bfd *abfd,
{
if (! dynamic)
{
- if (info->shared
+ if (! info->executable
|| hi->ref_dynamic)
*dynsym = TRUE;
}
@@ -1784,7 +1784,7 @@ nondefault:
{
if (! dynamic)
{
- if (info->shared
+ if (! info->executable
|| hi->ref_dynamic)
*dynsym = TRUE;
}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11413
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.