aboutsummaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-09-30 17:19:19 +0000
committerNick Clifton <nickc@redhat.com>2004-09-30 17:19:19 +0000
commitdb8acf26ca5d066a8cb97b8a80590886cfd04b77 (patch)
tree5250d0ac6cde35d4465b1e9c9f5e215bc0103237 /ld/pe-dll.c
parent9fe0b840a939461c776528aa63315f4228688ce3 (diff)
downloadfsf-binutils-gdb-db8acf26ca5d066a8cb97b8a80590886cfd04b77.zip
fsf-binutils-gdb-db8acf26ca5d066a8cb97b8a80590886cfd04b77.tar.gz
fsf-binutils-gdb-db8acf26ca5d066a8cb97b8a80590886cfd04b77.tar.bz2
emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate correct base
address for position independant executables. pe-dll.c (pe_dll_fill_sections): Don't mark position independant executables as DLLs.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 0d0ecda..8813de6 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -2665,7 +2665,7 @@ pe_dll_fill_sections (bfd *abfd, struct bfd_link_info *info)
fill_edata (abfd, info);
- if (info->shared)
+ if (info->shared && !info->pie)
pe_data (abfd)->dll = 1;
edata_s->contents = edata_d;