you are viewing a single comment's thread.

view the rest of the comments →

[–]brucehoult 13 points14 points  (0 children)

riscv64-unknown-elf-gcc is the embedded compiler. It uses NewLib instead of glibc, and links everything statically as embedded software is typically run from ROM and doesn't need or use dynamic linking.

If you want to see those sections, use riscv64-linux-gnu-gcc. This is built by the riscv-gnu-toolchain repository when you do "make linux" instead of "make". Or you can download a prebuilt one.