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

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.