D150220 proposed a fix for a relaxation bug when --wrap is used. The
issue happened to be already (accidentally) fixed by D149735. This patch
adds a test to ensure the issue isn't reintroduced in the future.
The issue is the following: when --wrap bar is used and an object file
defines both bar and __wrap_bar, __wrap_bar is inserted twice in
the symbol table pointing to the same Defined. Before D149735, symbol
values were adjusted by repeated subtraction causing the delta to be
subtracted twice from the duplicated symbol.
Note that I'm not quite sure whether inserting this symbol twice is
actually intended behavior. Could it be worthwhile to look into this?