1

Is there any option in GNU linker or linker script to load a non-object file at a particular address (i.e. the non-object file should be part of the executable image output by linker) ? Any help is appreciated.

Regards,

Kiran

1
  • 1
    What do you mean by a "non-object file"? Commented Mar 8, 2010 at 10:51

1 Answer 1

1

I think you need to define a separate segment for your additional file and then set the address for that segment using ld -segaddr.

$ man ld

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.