a-lunev commented on issue #3737:
URL: 
https://github.com/apache/incubator-nuttx/issues/3737#issuecomment-846621459


   >I am not sure how the ARM-Thumb interworking is handled.  But the
   compiler cannot really know if a function address is an ARM or a Thumb2
   address.  That cannot really be known until the files are linked via ld,
   right?
   >
   >In this case, there is a partial link using ld to produce a struct.r2
   but the final link is not performed by LD, but by ldnxflat.
   
   Yes, I'm also thinking it should be done at some final phase after all 
address manipulations.
   In case of GNU Toolchain I think it's done by linker.
   In case of NXFLAT Toolchain I suppose the final phase might be in ldnxflat. 
However, I'm not sure. I've not analyzed the source code / architecture of the 
both Toolchains.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to