question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Relocation table in AmigaOS hunks

See original GitHub issue

I’m implementing Amiga Executable Hunks loader, and this binary format has relocation tables, like in PE/NE files. There is getRelocationTable() method in Program object, which returns RelocationTable object. This table has public Relocation add(Address addr, int type, long[] values, byte[] bytes, String symbolName); method, but I don’t understand what I must pass as type, values, and ‘bytes’ values.

Type is int, and values, that are used in other loaders, are for PE and ELF formats only.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
lab313rucommented, Apr 3, 2019

Thank you:)

Read more comments on GitHub >

github_iconTop Results From Across the Web

VASM/VLINK relocation issues - English Amiga Board
Amiga-Hunk executables only support 32-bit absolute relocations, not 16-bit. ... a relocation table and an external reference table, like the AmigaDOS hunk ......
Read more >
amiga.txt
The Amiga OS takes care of all of this `relocation' by structuring executable files. Amiga programs are split into various segments, known as...
Read more >
How can executables work when being thrown ... - Amiga.org
The Amiga Hunk format uses a relocatable loader. ... Decoding ELF binaries with relocation table and making use of it seems however way...
Read more >
Kestrel - GitHub Pages
So, why not just relocate any linked executable at that point before ... of AmigaOS support ELF, originally, they simply adopted the Hunk...
Read more >
dev/moni/HunkFunc.lha - Aminet
HUNK_RELOC32 (and other types) hold relocation information. - HUNK_END ends an hunk entry. - In HUNK_CODE, HUNK_DATA and HUNK_BSS the memory flags may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found