Skip to content

Commit

Permalink
Look for symbols in opd section
Browse files Browse the repository at this point in the history
ppc64 binary has function symbols in opd section instead of text
section.
  • Loading branch information
pastalian authored and nwalfield committed Jul 9, 2024
1 parent 3d972cc commit 450edad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ fn symbols() -> anyhow::Result<()> {
for line in output.split("\n") {
if line.contains("g DF .text")
|| line.contains("g DO .data")
|| line.contains("g DF .opd")
{
let symbol = line.split(' ').last().expect("a word");
symbols.push(symbol);
Expand Down

0 comments on commit 450edad

Please sign in to comment.