search for: ldtest

Displaying 1 result from an estimated 1 matches for "ldtest".

Did you mean: latest
2013 Oct 16
1
[LLVMdev] Unexpected behaviour of the LLVM gold plugin with --allow-multiple-definition
...2; } void only_in_unit2( void ) {} ----------------------- Now when I compile the sources with clang and link it with GNU gold, for both ordering of unit1.c and unit2.c in the input arguments, everything seems to work fine: $ clang -Wl,-v,-allow-multiple-definition, main.c unit1.c unit2.c -o ldtest GNU gold (GNU Binutils for Ubuntu 2.22) 1.11 $ nm ./ldtest ... 0000000000400590 T get_unit_id 0000000000400570 T main 00000000004005c0 T only_in_unit1 00000000004005a0 T only_in_unit2 ... $ ./ldtest; echo $? 1 $ clang -Wl,-v,-allow-multiple-definition, main.c unit2.c unit1.c -o ldtest GNU gold (G...