English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

Thread Tools
Old 23 April 2016, 16:54   #1
Registered User

Join Date: Jul 2015
Location: The Netherlands
Posts: 3,026
Question 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?
roondar is offline  
Old 23 April 2016, 21:24   #2

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,015
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.
phx is offline  
Old 24 April 2016, 01:03   #3
Registered User

Join Date: Jul 2015
Location: The Netherlands
Posts: 3,026
Ah, that explains that.
Thanks for the answer, I'll just link the startup code as first file then!
roondar is offline  

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:12.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.09622 seconds with 15 queries