[PATCH] D44453: Update Error Message
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 14 12:51:55 PDT 2018
ruiu added inline comments.
================
Comment at: test/ELF/aarch64-fpic-add_abs_lo12_nc.s:4
// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
-// CHECK: can't create dynamic relocation R_AARCH64_ADD_ABS_LO12_NC against symbol: dat
+// CHECK: can't create dynamic relocation R_AARCH64_ADD_ABS_LO12_NC against symbol: dat in readonly segment; recompile object files with -fPIC to not create such relocations or pass "-z notext" to allow text relocations for lld
// CHECK: >>> defined in {{.*}}.o
----------------
I think you need to update this test as well. (Your C++ code recommends -Wl,-z,notext but this error message mentions "-z notext".
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D44453
More information about the llvm-commits
mailing list