Change the error message format for an incompatible relocation.
authorRui Ueyama <ruiu@google.com>
Mon, 3 Apr 2017 21:36:31 +0000 (21:36 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 3 Apr 2017 21:36:31 +0000 (21:36 +0000)
commit6ea72527e0275158bb1b390330f2bc28624c4625
tree950714ebb1d3ca6c2dde42727e5aa78e54e36581
parentc82768290d471384fe856febec99d6d1e2174f4c
Change the error message format for an incompatible relocation.

Previous error message style:

  error: /home/alice/src/bar.c:12: relocation R_X86_64_PLT32 cannot refer to absolute symbol 'answer' defined in /home/alice/src/foo.o

New error message style:

  error: relocation R_X86_64_PLT32 cannot refer to absolute symbol: foo
  >>> defined in /home/alice/src/foo.o
  >>> referenced by bar.c:12 (/home/alice/src/bar.c:12)
  >>>               /home/alice/src/bar.o:(.text+0x1)

llvm-svn: 299390
22 files changed:
lld/ELF/Relocations.cpp
lld/test/ELF/aarch64-fpic-abs16.s
lld/test/ELF/aarch64-fpic-add_abs_lo12_nc.s
lld/test/ELF/aarch64-fpic-adr_prel_lo21.s
lld/test/ELF/aarch64-fpic-adr_prel_pg_hi21.s
lld/test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s
lld/test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s
lld/test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s
lld/test/ELF/aarch64-fpic-prel16.s
lld/test/ELF/aarch64-fpic-prel32.s
lld/test/ELF/aarch64-fpic-prel64.s
lld/test/ELF/arm-target1.s
lld/test/ELF/copy-errors.s
lld/test/ELF/copy-in-shared.s
lld/test/ELF/copy-rel-pie-error.s
lld/test/ELF/dynamic-reloc-in-ro.s
lld/test/ELF/eh-frame-dyn-rel.s
lld/test/ELF/relocation-relative-absolute.s
lld/test/ELF/x86-64-dyn-rel-error.s
lld/test/ELF/x86-64-dyn-rel-error2.s
lld/test/ELF/x86-64-reloc-32-fpic.s
lld/test/ELF/x86-64-reloc-pc32-fpic.s