ivila commented on code in PR #156:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/156#discussion_r1897601358


##########
examples/hello_world-rs/ta/Makefile:
##########
@@ -20,7 +20,7 @@ UUID ?= $(shell cat "../uuid.txt")
 TARGET ?= aarch64-unknown-linux-gnu
 CROSS_COMPILE ?= aarch64-linux-gnu-
 OBJCOPY := $(CROSS_COMPILE)objcopy
-LINKER_CFG := target.$(TARGET).linker=\"$(CROSS_COMPILE)ld.bfd\"
+LINKER_CFG := target.$(TARGET).linker=\"$(CROSS_COMPILE)gcc\"

Review Comment:
   > Using the `ld.bfd` works as well, right?
   
   Yes, it did on cross_compiling, but not working if you compile on arm host 
machine, as ld.bfd defaultly trying to link to libgcc_s.so instead of libgcc.a 
if not cross compile(and the argument is `-lgcc_s`).
   
![image](https://github.com/user-attachments/assets/b4a0e6fa-64c8-4b33-bb91-5ea2f2a248b6)
   and with `-Bstatic` provided, it tries to find `libgcc_s.a`, but this is not 
valid as it should be in the name of `libgcc.a`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org

Reply via email to