24 September 2018, 00:39 | #1 |
Registered User
Join Date: Sep 2016
Location: Deventer - Netherlands
Posts: 599
|
Static adres
Is it possible to re alocate an executable to lets say $30000 and execute it from there
|
24 September 2018, 00:44 | #2 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,020
|
|
24 September 2018, 03:37 | #3 |
Registered User
Join Date: Sep 2016
Location: Deventer - Netherlands
Posts: 599
|
|
24 September 2018, 09:31 | #4 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
If the code is 100% pc-relative you can simply copy it to the destination address. If it isn't however that will not work, you have to relocate all RELOC32 entries to the new destination address (parse the RELOC32 hunk and adapt the code in the binary).
A simple and easy way to do all this: just crunch the binary using a cruncher that supports absolute addresses (CrunchMania, StoneCracker etc.) and simply let the cruncher do all the work for you. |
24 September 2018, 09:34 | #5 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,501
|
Or, if you want to make some test and mod before the crunch, use this:
http://www.whdload.de/docs/en/reloc.html |
24 September 2018, 11:59 | #6 |
Registered User
Join Date: Sep 2016
Location: Deventer - Netherlands
Posts: 599
|
thanks all for the helpfull hints, i go play with it..
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
skipping parts of a static copperlist... | Tigerskunk | Coders. Asm / Hardware | 13 | 27 October 2019 16:11 |
Mouse and static | Solderbro | support.Hardware | 1 | 19 June 2018 20:36 |
Moving a big banner behind a static object | Ozzyboshi | Coders. Asm / Hardware | 14 | 16 May 2018 20:34 |
Anti static wristband really necessary? | Treguard | support.Hardware | 4 | 29 June 2015 18:27 |
Static RAM in Amiga. | bebek | Hardware mods | 4 | 04 June 2010 05:06 |
|
|