Jump to content
Sign in to follow this  
djulien

How To Determine Which Label Is Bad?

Recommended Posts

If I have some asm code that jumps to a label, and the C code containing that label is removed (because the linker thinks it is dead code), an error like the following will be reported by the linker:

 

Internal Error: Unable to resolve label ID:268440099 - 0x10001223

Is there an easy way to figure out which label is causing the problem? The map and other output files are empty, so there is nothing to tell me which label is the problem. I have been using a "trial & error binary search" on the labels to try to find the bad one(s), but that is very tedious. I was hoping there was a quicker way.

 

thanks

 

don

Share this post


Link to post
Share on other sites

djulien,

If I have some asm code that jumps to a label, and the C code containing that label is removed (because the linker thinks it is dead code), an error like the following will be reported by the linker:

 

Internal Error: Unable to resolve label ID:268440099 - 0x10001223

Is there an easy way to figure out which label is causing the problem? The map and other output files are empty, so there is nothing to tell me which label is the problem. I have been using a "trial & error binary search" on the labels to try to find the bad one(s), but that is very tedious. I was hoping there was a quicker way.

Sadly no.

Internal errors are ones that end users should never get to see - assuming that compiler and linker are perfect.

 

It would be good to have a simple example of such bad code so we can improve compiler and linker.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...