diff options
Diffstat (limited to '01-efireloc.diff')
-rw-r--r-- | 01-efireloc.diff | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/01-efireloc.diff b/01-efireloc.diff new file mode 100644 index 000000000000..bf51cda2af97 --- /dev/null +++ b/01-efireloc.diff @@ -0,0 +1,14 @@ +diff --git a/src/efireloc.c b/src/efireloc.c +index 519dd75..e0736cd 100644 +--- a/src/efireloc.c ++++ b/src/efireloc.c +@@ -326,7 +326,8 @@ static void process_reloc ( bfd *bfd __unused, asection *section, arelent *rel, + /* Generate a 2-byte PE relocation */ + generate_pe_reloc ( pe_reltab, offset, 2 ); + } else if ( ( strcmp ( howto->name, "R_386_PC32" ) == 0 ) || +- ( strcmp ( howto->name, "R_X86_64_PC32" ) == 0 ) ) { ++ ( strcmp ( howto->name, "R_X86_64_PC32" ) == 0 ) || ++ ( strcmp ( howto->name, "R_X86_64_PLT32" ) == 0 ) ) { + /* Skip PC-relative relocations; all relative offsets + * remain unaltered when the object is loaded. + */ |