diff options
author | Nick Clifton <nickc@redhat.com> | 2007-03-16 15:13:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-03-16 15:13:21 +0000 |
commit | cd3714d205457d900e31c53c7ae23ea02830bf7d (patch) | |
tree | 779b253d1c15b8e89eb99d4f33d60eee96a4100c /binutils/dlltool.c | |
parent | 4ef9b2166e4005912885f982138b6479e7037ccd (diff) | |
download | binutils-redhat-cd3714d205457d900e31c53c7ae23ea02830bf7d.tar.gz |
Use pc-relative relocation instead of an absolute relocation for x86_64-pc-mingw32 target.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r-- | binutils/dlltool.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 1bcd97432f..8ee61d3220 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -2412,6 +2412,12 @@ make_one_lib_file (export_type *exp, int i) BFD_RELOC_16_GOTOFF); rel->sym_ptr_ptr = iname_pp; } + else if (machine == MX86) + { + rel->howto = bfd_reloc_type_lookup (abfd, + BFD_RELOC_32_PCREL); + rel->sym_ptr_ptr = iname_pp; + } else { rel->howto = bfd_reloc_type_lookup (abfd, BFD_RELOC_32); |