23 April 2016, 16:54 | #1 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,406
|
VLINK multiple VASM objects
I have a bit of a conundrum on my hands.
I have been linking several object files output by VASM together using VLINK. This works fine. However, changing the order of the files in the linker arguments also changes the application entry point - whichever file is first always gets called into. Now, I've tried using the -e flag to get VLINK to use a different entry point, but to no succes. I can't figure out how to define the entry point in my assembly files. I've tried -e and using an _start label in my code as well as -e <label> with a that label in my code. Neither works. My feeling is I'm overlooking something very simple. But I can't figure it out. So: how should I do this to get it to work? |
23 April 2016, 21:24 | #2 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Not all vlink options are valid for all output file formats. Setting the entry point with -e works for ELF executables, but not for Amiga hunk-format executables. They always start at the first byte of the first section.
That's not a limitation of vlink, but of AmigaDOS hunk-format. |
24 April 2016, 01:03 | #3 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,406
|
Ah, that explains that.
Thanks for the answer, I'll just link the startup code as first file then! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
lightwave objects | klx300r | request.Other | 10 | 18 March 2016 23:58 |
Blitter Objects (bobs) | Lonewolf10 | Coders. Tutorials | 3 | 22 February 2013 22:24 |
Hello, looking for Lightwave objects | marcfrick2112 | request.Apps | 0 | 03 April 2008 02:12 |
Looking for a program to make animated objects. | Ironclaw | Retrogaming General Discussion | 8 | 15 May 2006 12:58 |
two cursor objects | kaare johansson | support.WinUAE | 1 | 24 December 2002 00:41 |
|
|