aboutsummaryrefslogtreecommitdiff
path: root/i386-link.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386-link.c')
-rw-r--r--i386-link.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/i386-link.c b/i386-link.c
index c098172..c232f39 100644
--- a/i386-link.c
+++ b/i386-link.c
@@ -56,12 +56,17 @@ int gotplt_entry_type (int reloc_type)
switch (reloc_type) {
case R_386_RELATIVE:
case R_386_16:
- case R_386_32:
case R_386_GLOB_DAT:
case R_386_JMP_SLOT:
case R_386_COPY:
return NO_GOTPLT_ENTRY;
+ case R_386_32:
+ /* This relocations shouldn't normally need GOT or PLT
+ slots if it weren't for simplicity in the code generator.
+ See our caller for comments. */
+ return AUTO_GOTPLT_ENTRY;
+
case R_386_PC16:
case R_386_PC32:
return AUTO_GOTPLT_ENTRY;