-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disambiguate symbols by their address, not an index.
Previously, duplicate symbols were disambiguated in output by writing one of them as 'foo' and the rest as 'foo#1', 'foo#2', 'foo#3'... This had two problems. Firstly, not _all_ the duplicate symbols were visibly disambiguated, so if you happened to see just 'foo' by itself, you might mistakenly think it was a unique name. Also, those indices were made up while reading the symbol table, and have no meaning. A nicer disambiguation strategy is to suffix duplicate symbols with their address. Then at least you know where to find the symbol. (It would be nicest to use a disambiguation suffix that had some meaning in terms of the original source code, like which module the function had come from. But unfortunately, no such thing survives into the image.)
- Loading branch information
1 parent
3dd82f7
commit b144608
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters