View Single Post
Old 23 April 2016, 17:54   #1
Registered User

Join Date: Jul 2015
Location: The Netherlands
Posts: 3,061
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  
Page generated in 0.04323 seconds with 11 queries