Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created April 17, 2024 16:18
Show Gist options
  • Save lupyuen/413830fed9cdb2b02d5f9d0d062beb3e to your computer and use it in GitHub Desktop.
Save lupyuen/413830fed9cdb2b02d5f9d0d062beb3e to your computer and use it in GitHub Desktop.
[Before Custom Rust Target] ELF Header for Rust Compiler Output: Software Floating-Point. See https://github.com/lupyuen/nuttx-rust-app
## [Before Custom Rust Target]
## ELF Header for Rust Compiler Output:
## Software Floating-Point
$ riscv64-unknown-elf-readelf \
--file-header --arch-specific \
../apps/examples/hello_rust/*hello_rust_1.o
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: REL (Relocatable file)
Machine: RISC-V
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 10240 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 40 (bytes)
Number of section headers: 29
Section header string table index: 1
Attribute Section: riscv
File Attributes
Tag_RISCV_stack_align: 16-bytes
Tag_RISCV_arch: "rv32i2p1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment