How to link my program to a library that contains malloc and free [32-Bit ARM assembly] [raspbian]

Viewed 44

I want to use malloc and free in my 32-bit ARM assembly program. The problem is that I don't how to link my program to the library that contains those two functions. I know the linker path for the 64-bit version but not the 32-bit one.

For 64-Bit ARM assembly, It would look like this...

ld -o project /usr/lib/aarch64-linux-gnu/libc.so project.o -dynamic-linker /lib/ld-linux-aarch64.so.1

How would I do the same thing but for the 32-bit version?

0 Answers
Related