From db8acf26ca5d066a8cb97b8a80590886cfd04b77 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 30 Sep 2004 17:19:19 +0000 Subject: 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. --- ld/pe-dll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/pe-dll.c') 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; -- cgit v1.1