Create section on linker script

João Pires joaopires51@gmail.com
Mon Jan 13 10:09:00 GMT 2014


Hi, I'm interested in create sections during the link phase.
These sections will have no data and will have two symbols.
At the moment I have the follow code.


 .foo :
 {
 foo_begin = ORIGIN(.foo);
 foo_end = ORIGIN(.foo) + SIZEOF(.foo);
 }

 This code creates the two symbols, but don't create the section .foo
 My question is there are any way to do this?

 Thanks

 João Pires



More information about the Binutils mailing list