Unknown pseudo-op vle

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unknown pseudo-op vle

1,308 Views
RicardoI
Contributor I

I am trying to change Green Hills compiler to NXP GCC crosscompile for Power Architecture. The project based on MPC5674F (e200z7 core). But I found below error.

Error:

Assembler messages:
Error: unknown pseudo-op: `.vle'

 

Ubuntu 16.04.7 LTS

S32 Design Studio for Power Architecture

Version: 2.1
Build id: 190624

 

0 Kudos
3 Replies

1,289 Views
stanish
NXP Employee
NXP Employee

Hi Ricardol

There is no code portability ensured when it comes to assembleer keywords. Therefore you should manually adjust asembler keywords, compiler pragmas etc. when migrating the project from/to GHS.

 e.g. .vle could be removed since there is no counterpart keyword in gcc. All you need to do is to add keyword  .section .name to place the code into VLE section (replace .name with valid VLE section name - see linker file) and make sure the assembler command line option -mvle is pressent.

Hope it helps.

Stan

0 Kudos

1,286 Views
RicardoI
Contributor I

Thank you for your help. Also are the bellow instruction green hills sintax?

 

unknown pseudo-op: `.need'

0 Kudos

911 Views
stanish
NXP Employee
NXP Employee

Ricardo,

.need in GHS defines function that shouldn't be optimized out by the linker even if it is not called.

I'm not aware of any equivalent keyword in GCC assembler.

Anyway you could possibly use the linker command file keyword KEEP().

e.g. assuming the function goes myFunc() into default .text section:

KEEP(*(.text.myFunc))

 

Hope it helps.

Stan

Tags (1)
0 Kudos