diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-03-21 23:26:33 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-03-21 23:26:33 +0000 |
commit | ca4a656ba45ab05e7998d6fd5dc445f55d4c8197 (patch) | |
tree | 849f08709795d5a4b4401697b283e2322137c015 /bfd/elflink.c | |
parent | acaf5de82703513e8a2adddf5b2b7462f7be5fbf (diff) | |
download | gdb-ca4a656ba45ab05e7998d6fd5dc445f55d4c8197.zip gdb-ca4a656ba45ab05e7998d6fd5dc445f55d4c8197.tar.gz gdb-ca4a656ba45ab05e7998d6fd5dc445f55d4c8197.tar.bz2 |
Check !executable instead of shared for PIE.
2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11413
* elflink.c (_bfd_elf_add_default_symbol): Check !executable
instead of shared.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |