Kiran
Kiran

Reputation: 11

Linking non-object file at a particular address

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

Upvotes: 1

Views: 193

Answers (1)

Paul R
Paul R

Reputation: 213130

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

Upvotes: 1

Related Questions