Unknown pseudo-op with -march=arm

Hello,

Running some examples to see how LLVM work, I found that some pseudo operations are unknown. Details are shown below.

This is the command sequence that I am using:

Hello

hello.s:6: Error: Unknown pseudo-op: `.eabi_attribute'

How old is your arm toolchain?

I am using SimpleScalar cross-compiler 2.95.2 (http://www.simplescalar.com/v4test.html)

I am using SimpleScalar cross-compiler 2.95.2 (http://www.simplescalar.com/v4test.html)

It's really ancient. Consider upgrading to something not from stone
age :slight_smile: I doubt you'll be able to assemble anything generated by, for
example, with mainline gcc.

wow… Tell me, what cross compiler can I use for ARM if I am working in a i686-Linux machine? At the same time, how I can simulate it?

But the way, If I deleted the unknown pseudo-op and change section .rodata definition, I can use my stone age cross compiler. I am just wondering why it works without them.

Thanks in advance.

You need a newer binutils. That one is around eight years old. Try
binutils 2.19.1.

deep

wow... Tell me, what cross compiler can I use for ARM if I am working in a i686-Linux machine?

As usual - gcc + binutils.

At the same time, how I can simulate it?

QEMU ?

Hi Anton,

Please find attached the td definitions for smul/smal.

Best regards,
Viktor

smul_smla.td (4.48 KB)