[PATCH] [lld] [LinkerScript] Handle symbols defined in linker scripts

Rafael Auler rafaelauler at gmail.com
Wed Mar 11 13:33:05 PDT 2015


Thanks for pointing out Davide, I saw this patch. But there are two things that are not correct in init_array:

First, lld couldn't resolve the correct address of init array. This does not affect my patch because I get my addresses from the linker script symbol table.

Second, the symbol is ABS in lld, but in GNU ld it is not. This also happens for symbols defined in linker scripts. As I mentioned, I plan to later change this to emulate the behaviour of GNU ld. However, I'm not sure if this is strictly necessary. I'll do this when I find a test case that proved LLD's way to be incorrect.


http://reviews.llvm.org/D8263

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list