Author Topic: Forcing code location with the GNU linker in C::B  (Read 3404 times)

Paz

  • Guest
Forcing code location with the GNU linker in C::B
« on: January 13, 2009, 07:04:22 pm »
Hello,

I'm working on a flash upgrading system to use on the Jennic micros. Jennic uses the GNU linker and compiler. To get my upgrading scheme to work I need to place code at specific locations. Does anyone know how to get the GNU linker to place a project at a specific location?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Forcing code location with the GNU linker in C::B
« Reply #1 on: January 14, 2009, 04:01:32 pm »
1. insufficient data: does code location refer to a memory or filesystem location?
2. read the gnu ld documentation: it explains how to do either (if it's a file system location, use -o)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."