foss-for-synopsys-dwc-arc-processors / binutils-gdb

A mirror of the upstream binutils-gdb repository for ARC specific work
GNU General Public License v2.0
13 stars 10 forks source link

Bruno relocation fixes #69

Closed BrunoASMauricio closed 1 year ago

BrunoASMauricio commented 1 year ago

Fixes for https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/565 and https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/564.

Removed ARC_32_ME_S encoding and updated the following fields

Enum Hex ELF Reloc Type Type Details
27 0x1b R_ARC_32_ME signed -> bitfiled word32 = ME (S + A)
54 0x36 R_ARC_GLOB_DAT signed -> bitfiled word32= S
55 0x37 R_ARC_JMP_SLOT signed -> bitfiled word32 = ME(S)
56 0x38 R_ARC_RELATIVE signed -> bitfiled word32 = ME(B+A)