[PATCH] D30699: [ELF] - Stop producing broken output for R_386_GOT32X relocation.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 13:14:18 PDT 2017
ruiu added inline comments.
================
Comment at: ELF/Target.cpp:394
+ // resolves to an offset in GOT table (R_GOT_FROM_END), but when instruction
+ // pointed by relocation has no base register, this relocation can be used
+ // when PIC code is disabled. In that case it resolves to address of entry
----------------
What is "this" in this sentence?
================
Comment at: ELF/Target.cpp:406
+ error(toString(S.File) +
+ ": relocation R_386_GOT32/R_386_GOT32X against '" + S.getName() +
+ "' without base register can not be used when PIC enabled");
----------------
You want to use `toString(Type)` instead of R_386_GOT32/R_386_GOT32X.
https://reviews.llvm.org/D30699
More information about the llvm-commits
mailing list