Custom linker script

I am using RTEMS 5.0.0 with the leon3 processor. I would like to use a custom linker script for my application. i was able to pass the -T argument to the linker with a copy of the existing rtems linker script, but I’m seeing errors that multiple STARTUPs are defined. passing the verbose linker flag in confirms that both my custom and default rtems files are being loaded. I found the option -nostartfiles, but that did not have an effect. and looking at the help page of the linker, that option didn’t look to exist.

is there a way to use a custom linker script? or would my only option be editing the existing linker script in the installation.

thanks,
-wes

Usually I use the following LDFLAGS for that:

LDFLAGS += -qnolinkcmds -T linkcmds.custom

That should work with any RTEMS version.

Best regards

Christian

that did it, thanks for the quick response