Preventing cross-gdb/insight download of specific sections?
Toralf Lund
toralf@procaptura.com
Thu Sep 23 07:56:00 GMT 2004
Toralf Lund wrote:
> mkelwood@qsicorp.com wrote:
>
>> If you want to use /DISCARD/, you need an output section named
>> /DISCARD/,
>> then put the input sections you want to exclude in there:
>> /DISCARD/ :
>> {
>> *(.section1-to-exclude)
>> *(.section2-to-exclude)
>> }
>>
>> Looks like you are trying to stuff the output section .fpga into a
>> memory
>> region named /DISCARD/. That won't do what you want.
>> With best regards,
>>
>>
> Ah. Now I see. I guess I got the terminology mixed up when I read the
> manual. It would still seem more logical to me to specify this in
> terms of the memory area, but never mind that.
>
> However, if I just replace .fpga with /DISCARD/ in the below section
> setup (and drop the > /DISCARD/), I get
>
> /usr/arm-coff/bin/ld: Illegal use of `/DISCARD/' section
> collect2: ld returned 1 exit status
>
> Any ideas why?
OK. Seems like it doesn't like address update statements (". =
ALIGN(...)" etc.) inside the /DISCARD/ section. How annoying. This makes
life harder because I'm automatically generating this linker script,
based on a different one which I want to include the section in question.
- Toralf
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list