No, that won't work. The assembler only recognizes .text, .data, and
.bss and doesn't support .section. Surely there's a simple hook that
instructs that compiler to print locals after a function instead of
before it?

On Mon, Jul 6, 2009 at 10:11 AM, Trevor
Scroggins<trevor.scrogg...@gmail.com> wrote:
> The target doesn't use ELF. I have .text, .data, and .bss, and
> read-only data normally goes in .text. I'm learning as I go, so I'll
> fiddle with a dummy .rodata section of some sort that the linker can
> position accordingly.
>
> On Mon, Jul 6, 2009 at 10:00 AM, Ian Lance Taylor<i...@google.com> wrote:
>> Most targets put constant strings and the like in the .rodata section.
>> Then the linker script can put that in a useful place.  That seems like
>> the best approach to use for a processor like m68k which supports
>> general addressing.  I'm surprised that doesn't happen already.  I
>> assume you are using an ELF target, in which case I would expect
>> default_elf_select_rtx_section to do the right thing.
>>
>> Ian
>>
>

Reply via email to