Skip to content

Commit

Permalink
Add SHT_SHARC_ADI_ATTRIBUTES
Browse files Browse the repository at this point in the history
Encoded as normal ELF attributes, with proprietary tags.

I have an implementation of the full encode/decode in a private repo,
which I can share for porting into `object` if needed, but it seems a
bit out of scope.
  • Loading branch information
joshchngs committed Nov 13, 2023
1 parent 727a50c commit 65d3669
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2306,6 +2306,10 @@ pub const R_SHARC_CALC_XOR: u32 = 0xeb;
pub const R_SHARC_CALC_PUSH_LEN: u32 = 0xec;
pub const R_SHARC_CALC_NOT: u32 = 0xf6;

// SHARC values for `SectionHeader*::sh_type`.

/// .adi.attributes
pub const SHT_SHARC_ADI_ATTRIBUTES: u32 = SHT_LOPROC + 0x2;

// SUN SPARC specific definitions.

Expand Down

0 comments on commit 65d3669

Please sign in to comment.