Linker-flavor value of linker=aarch64-linux-gnu-gcc


#1

What is the linker-flavor value for linker=aarch64-linux-gnu-gcc?


#2

It should be gcc.


#3

Thanks for your reply.

Not sure it related to the following link error, the problem still exist:

      /usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/lib/../lib/crt1.o: In function `_start':
      (.text+0x18): undefined reference to `main'
      (.text+0x1c): undefined reference to `main'
      (.text+0x20): undefined reference to `main'
      (.text+0x24): undefined reference to `main'
      (.text+0x28): undefined reference to `__libc_csu_init'
      (.text+0x2c): undefined reference to `__libc_csu_init'
      (.text+0x30): undefined reference to `__libc_csu_init'
      (.text+0x34): undefined reference to `__libc_csu_init'
      (.text+0x38): undefined reference to `__libc_csu_fini'
      (.text+0x3c): undefined reference to `__libc_csu_fini'
      (.text+0x40): undefined reference to `__libc_csu_fini'
      (.text+0x44): undefined reference to `__libc_csu_fini'
      (.text+0x48): undefined reference to `__libc_start_main'
      (.text+0x4c): undefined reference to `abort'
      collect2: error: ld returned 1 exit status

error: aborting due to previous error