send2vinnie / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

fail to link abs test case in gnu ld testsuite #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
llvm-mcld -march=x86 abs.o zero.o 
llvm-mcld: 
/home/pete/workspace/mclinker/debug/../lib/Target/GNULDBackend.cpp:1298: 
uint64_t mcld::GNULDBackend::getSymbolShndx(const mcld::LDSymbol&, const 
mcld::Layout&) const: Assertion `pSymbol.hasFragRef() && "symbols must have 
fragment reference to get its index"' failed.
Stack dump:
0.      Running pass 'Function Pass Manager' on module 'Empty Module'.
Aborted (core dumped)

-------------------------------

The symbol `zero' is GLOBAL/DEFAULT/ABS, but in current symbol resolution, 
`zero' will be resolved to GLOBAL and then the assertion in getSymbolShndx is 
failed.

Original issue reported on code.google.com by pete.c...@gmail.com on 16 Oct 2012 at 9:08

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in commit 824f1b8dbc0da142b7d31960a04713aefa34aa46.

Original comment by pete.c...@gmail.com on 23 Oct 2012 at 6:05