[PATCH] D16084: [ELF][MIPS] Prevent substitution of _gp_disp symbol
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 14:00:38 PST 2016
ruiu added a comment.
Is this behavior defined in the MIPS ABI, or is this just conventional?
Why addIgnored() didn't work? I think addIgnored() adds an absolute symbol to the symbol table, so it doesn't seem much different from this code.
================
Comment at: test/ELF/mips-gp-disp.s:5
@@ +4,3 @@
+# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
+# RUN: ld.lld -o %t.exe %t.o %S/Inputs/mips-gp-disp-def.so
+# RUN: llvm-readobj -symbols %t.exe | FileCheck -check-prefix=EXE %s
----------------
Can you create this so file in this file from an assembly file, instead of checking in a binary file?
Repository:
rL LLVM
http://reviews.llvm.org/D16084
More information about the llvm-commits
mailing list