When multiple symbol names alias to the same symbol (which is the case
when we use --wrap), the RISC-V relaxation steps are executed multiple
times for the same symbol, causing erroneous addresses being assigned to
symbols. This commit fixes this by only operating on unique symbols
(addressed by the symbol pointers).
Signed-off-by: Kishore Ganesh <kishoreganesh@rivosinc.com>
It looks like you're only using existance in the map, so this can be a DenseSet<Symbol *>