This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

STARTUP linker script option


Hi all,

I'm new to the mailing list, but I've been tinkering in a fork of the code
for the past few years.  My fundamental question is pretty simple: is the
STARTUP() linker script option deprecated?  It seems to do nothing.

After looking at the code in ld/ldlang.c, it seems like the filename that
is provided in STARTUP() is stored in first_file, but that variable appears
to be both static to the file and never referenced.  Looking back in the
archive, it seems like it's been that way for at least the past decade, so
what am I missing?

I was able to solve my problem by explicitly adding my bootstrap code file
to the top of the .text file in the linker script.  STARTUP() isn't really
essential, and so maybe that's why this hasn't come up.

Thanks for any guidance,

Matt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]