Wie ist das entry point beim Linker einzustellen?

Gast #3527517
Lesenswert?

Mein Einstiegspunkt, heißt __start, ist in einem .sx File zu finden. Für 
Testfall Generierung muss ich ihn bei der Linkerflags eingeben. Mein 
Problem ist, dass er in einem anderen Projekt zu finden ist.
Wie kann ich dem Linker mitteilen, dass z.B. die Funktion unter dem Pfad 
ist: c:/project/test/boot.sx

jetzt ist so eingestellt:
--entry=__start
und ich bräuchte etwas solches, aber halt in der korrekten Form.
--entry=<c:/project/test/boot.sx>/__boot

Dokumentation von Linker: Laut der Dokumentation kann ich nur Adresse 
eingeben.
"
3.4.1 Setting the Entry Point
The first instruction to execute in a program is called the entry point. 
You can use the
ENTRY linker script command to set the entry point. The argument is a 
symbol name:
ENTRY(symbol)
There are several ways to set the entry point. The linker will set the 
entry point by trying
each of the following methods in order, and stopping when one of them 
succeeds:
* the ‘-e’ entry command-line option;
* the ENTRY(symbol) command in a linker script;
* the value of the symbol start, if defined;
* the address of the first byte of the ‘.text’ section, if present;
* The address 0.
"

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren