gas: fix symbol value calculation for versioned symbol aliases
authorChristian Eggers <ceggers@gmx.de>
Sun, 1 Nov 2020 08:10:14 +0000 (09:10 +0100)
committerAlan Modra <amodra@gmail.com>
Tue, 3 Nov 2020 07:47:35 +0000 (18:17 +1030)
commit05862db73fb5cad8bdae85e240b7b4713aad327e
treef2580205f7c0391e50ddf6ca07ce761675d67a6f
parent706d7ce94809f3d647450eb54e2e77e4732bd9af
gas: fix symbol value calculation for versioned symbol aliases

Symbol value is in bytes while fragS::fr_address is in octets. Fixes GAS
symver12 and symver13 tests on ELF targets with with OCTETS_PER_BYTE>1.

* config/obj-elf (elf_frob_symbol): Fix symbol value calculation
for versioned symbol aliases.

Signed-off-by: Christian Eggers <ceggers@gmx.de>
gas/ChangeLog
gas/config/obj-elf.c