fromGoogleCode / mclinker

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

Fail to handle symbols defined on the eh_frame fragment which to be deleted #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
* What steps will reproduce the problem?
ld.mcld -shared -march=arm capget.o capset.o

* Result: Segmentation fault

* Fail at finalizeSymbolValue, the symbol `$d` defined in .eh_frame has 
fragmentRef but its fragment has been deleted, which cause the invalid memory 
access of the fragment. 

* We may need to check the symbols are handled correctly when deleting a 
fragment.

Original issue reported on code.google.com by mysekki on 18 Dec 2013 at 4:25

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This patch can temporarily solve this issue.

Note: this has side effect, and I will refine it later.

Original comment by wenhan...@gmail.com on 19 Dec 2013 at 7:13

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in 
https://code.google.com/p/mclinker/source/detail?r=c84a900c7f2225c736386aa5d89ba
1a868301157

Original comment by wenhan...@gmail.com on 19 Dec 2013 at 1:46