Files
clang-p2996/lld/test/ELF/linkerscript
Rui Ueyama 016833bac2 lld: unquote possibly quoted EXTERN("symbol") entry in linker script.
gold accepts quoted strings. binutils requires quoted strings for some
kinds of symbols, e.g.:

  it accepts quoted symbols with @ in name:

  $ echo 'EXTERN("__libc_start_main@@GLIBC_2.2.5")' > a.script
  $ g++ a.script
  /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
  (.text+0x20): undefined reference to `main'
  collect2: error: ld returned 1 exit status

  but rejects them if unquoted:

  $ echo 'EXTERN(__libc_start_main@@GLIBC_2.2.5)' > a.script
  $ g++ a.script
  a.script: file not recognized: File format not recognized
  collect2: error: ld returned 1 exit status

To maintain compatibility with existing linker scripts support quoted
strings in lld as well.

Patch by Lucian Adrian Grijincu.

Differential Revision: https://reviews.llvm.org/D57987

llvm-svn: 353756
2019-02-11 22:01:32 +00:00
..
2018-07-02 19:17:03 +00:00
2018-03-13 16:23:48 +00:00
2018-07-02 19:17:03 +00:00
2018-03-26 08:58:16 +00:00
2017-11-30 22:29:14 +00:00
2019-01-10 16:26:05 +00:00
2019-01-28 15:03:47 +00:00