[PATCH] [Core] Do not reclaim absolute atoms in resolver

Shankar Kalpathi Easwaran shankarke at gmail.com
Mon Feb 23 10:59:50 PST 2015


I feel its a bug in GNU on why absolute symbols are not reclaimed. Do we want to be bug compatible with lld ?

cat > 1.c << \!
int foo() { return 0; }
!

cat > 2.c << \!
int bar() { return 0; }
!

gcc -c 1.c 2.c
ld 1.o 2.o -e foo --gc-sections

nothing in bar is used, but still there is an absolute symbol, confuses me.


http://reviews.llvm.org/D7823

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






More information about the llvm-commits mailing list