Closed SabeehKhan18 closed 2 years ago
Thanks for sharing this - I'll work to reproduce and test the generated image without the tag. I'll also see if there's a reason this tag has been deprecated or what it has been replaced with!
OK, it seems like ld no longer ignores erroneous command line arguments. nostartfiles is a gcc argument, not an ld argument - it was my mistake, but has only been picked up with the latest Arm drop of gcc.
So you can safely remove -nostartfiles. I've updated the repo to reflect this. Really grateful for you bringing it to my attention!
Please close this issue if you're happy it's resolved.
All the best, Adam
Thank you so much! I was worried I was doing something wrong.
Using WSL for emulating ubuntu, I downloaded and unpacked the latest x86_64 Linux hosted cross compilers (gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz). After editing the makefile from part 2-building to point to my compiler directory, I got the following error:
Changing
-nostartfiles
to--nostartfiles
on the ld command resulted inunrecognized option '--nostartfiles'
Removing
-nostartfiles
resulted in a successful build, but I have not yet executed the image. Should this tag option be removed?Thank you for your help and guidance!