View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0000444 | mercury | Bug | public | 2018-01-11 12:34 | 2018-01-12 17:33 | ||||
Reporter | wangp | ||||||||
Assigned To | wangp | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000444: static linking with musl crashes | ||||||||
Description | When using musl, static linking (i.e. --linkage static) causes the program to crash during initialisation of the GC. It has to do with passing the "-Wl,-defsym -Wl,_DYNAMIC=0" in the linking step. The program will not crash if _DYNAMIC is not defined. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
Notes | |
wangp (developer) 2018-01-11 12:50 |
Without "-Wl,-defsym -Wl,_DYNAMIC=0", the binary DOES have a symbol _DYNAMIC but with a non-zero address: bash-4.4$ nm -a hello | grep _DYNAMIC 00000000006dcdf8 d _DYNAMIC bash-4.4$ ./hello Hello, world |
wangp (developer) 2018-01-12 17:33 |
Fixed by commit ee177a481 |
Issue History | |||
Date Modified | Username | Field | Change |
---|---|---|---|
2018-01-11 12:34 | wangp | New Issue | |
2018-01-11 12:50 | wangp | Note Added: 0000960 | |
2018-01-12 17:33 | wangp | Assigned To | => wangp |
2018-01-12 17:33 | wangp | Status | new => resolved |
2018-01-12 17:33 | wangp | Resolution | open => fixed |
2018-01-12 17:33 | wangp | Note Added: 0000961 |