msgilligan commented on PR #138:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/138#issuecomment-2138023734

   > Since it's a buildroot toolchain compiled from source in case of native 
aarch64 builds.
   
   After seeing the following line in `setup.sh` in this repository, I have 
been experimenting with using the standard apt toolchain on an aarch64 host:
   
   ```
   apt update && apt -y install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
   ```
   
   When I tried to apt install `gcc-aarch64-linux-gnu` I got the following 
message:
   
   ```
   Note, selecting 'gcc' instead of 'gcc-aarch64-linux-gnu'
   gcc is already the newest version (4:12.2.0-3).
   ```
   
   So this lead me to create PR #137.
    
   >  Can you try following diff instead?
   
   It's force-pushed and I will try it out in my aarch64 Debian VM.
   
   Please note the two commented-out lines in 
`examples/acipher-rs/ta/build.rs`. They set the following two linker options, 
which I suspect are necessary for proper TA operation (but have not tested yet):
   
   ```
   --sort-section=alignment
   --dynamic-list=dyn_list
   ```
   
   This PR is meant to document my work-in-progress and to stimulate 
discussion, it is a "very drafty" DRAFT.
   
   Note that I am new to OP-TEE, relatively new to Rust, have not used Rust in 
embedded environments before and am not knowledgeable about these linker 
options, so I'm experimenting and learning as I go along...


-- 
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