-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clang: ldelf fails to print mappings of shared library #3899
Comments
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
Hi @jforissier I also encounter this problem after changing toolchain from GCC to Clang 9.0.1. Do you start to work on this issue? |
Hi @ZTingLiu,
No. Unfortunately I don't know this part of the code very well :-/
I agree. What is happening here is that ldelf was implemented and tested mostly based on the output of GCC, and I think some assumptions were made that do not always hold true. @jenswi-linaro any comments on how to troubleshoot this? |
The The check around some corner case just before the failing |
Hi |
@ZTingLiu you are right, the problem is only with shared libraries. |
@jforissier |
@ZTingLiu yes. |
Hi |
xtest 1019
built with Clang 9.0.1 (10.0.0 and 11.0.0 are similar), QEMUv8:The test is succesful, but the secure console should normally print complete debugging information i.e., TA mappings followed by a call stack. Here
ldelf
meets an unexpected condition and stops the dump.The program headers of the shared library:
The text was updated successfully, but these errors were encountered: