AnsweredAssumed Answered

S32DS PowerPC 1.1: Serious linker bug

Question asked by 42Bastian Schick on Feb 17, 2017
Latest reply on Feb 21, 2017 by 42Bastian Schick

Hi

 

there is a bug in the linker doing symbol fixup.

 

I have following code:

e_lis r2,ext_label@ha

e_add2i. r2,ext_label@l

 

The generated opcodes are correct, but after linking (I guess it depend on the actual value of the label) I get (here it is 0xb0c):

e_lis r2, 0

e_add2i. r18,0x30c

----------------

The linker does simply replace the low-word of the opcode by "0xb0c", but the immediate is spread all over the opcode!

Outcomes