[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] Help on compilation with or32-uclinux-gcc



If you are compiling with or32-uclinux tools, be sure to add "ax" flags or 
similar to .section.

See the /or1ksim/testbench/except.S and /or1ksim/testbench/except.ld.

Marko

On Thursday 12 September 2002 15:08, maunal moren wrote:
> Hi,
>
> I compiled a program using or32-uclinux-gcc as follow:
> $ or32-uclinux-gcc -g -Wall -nostdlib -o test -T./test.ld except.o test.o
> ./support/libsupport.a
>
> except.S and libsupport.a are from or1ksim/testbench.
> The compilation was successfull without any errors, but output file "test"
> has no .except section. This is the first time I use or32-uclinux tools.
> When I compiled above example using or32-rtems-gcc, .except section was
> included in the execuable. I checked the excutables using or32-*-objdump's
> with -D option.
>
> Here under is test.ld script I used:
> -------------------------------------------
> MEMORY
>         {
>         except : ORIGIN = 0x00000000, LENGTH = 0x00002000
>         ram    : ORIGIN = 0x00002000, LENGTH = 0x001fe000
>         }
>
> SECTIONS
> {
>       .except :
>         {
>         *(.except)
>         } > except
>       .text :
>         {
>         *(.text)
>          _src_beg = .;
>         } > ram
>       .data :
>         {
>         *(.data)
>  *(.rodata)
>         _dst_beg = .;
>         _dst_end = .;
>         } > ram
>       .bss :
>         {
>         *(.bss)
>         } > ram
>       .stack  ALIGN(0x10) (NOLOAD):
>         {
>         *(.stack)
>         _ram_end = .;
>         } > ram
> }
> -------------------------------------------
>
> Any hints or comments would be appreciated.
>
> /maunal
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! News - Today's headlines

--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml