This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linker script error compiling linux-host, i386-go32 target /gcc


thunder7@xs4all.nl wrote:
> 
> I am trying to create a cross-compiler hosted on linux, which
> can compile programs for DOS.
> 


> 
> I get a linker-script error in ld. I'm not proficient enough in the build
> process to have any inkling of what might be going wrong here. I can see
> this is when testing gcc to link the new library, and it says 'ignore
> linker errors' but somehow I think this is a bit more serious....
> 

> --------------------
> i386go32.x
> --------------------
> OUTPUT_FORMAT("coff-go32-exe")
> ENTRY(start)
> SECTIONS
> {
>   .text  0x1000+SIZEOF_HEADERS : {
>     *(.text)
>     *(.const*)
>     *(.ro*)
>     etext  =  . ; _etext = .;
>     . = ALIGN(0x200);
>   }
>   .data  ALIGN(0x200) : {
>     djgpp_first_ctor = . ;
>     *(.ctor)
>     djgpp_last_ctor = . ;
>     djgpp_first_dtor = . ;
>     *(.dtor)
>     djgpp_last_dtor = . ;
>     *(.data)
>      edata  =  . ; _edata = .;
>      . = ALIGN(0x200);
>   }
>    }
>    }

   ^^^^^^^^
These two lines shouldn't be here.  I don't knnow what is
going wrong that they are there.  There are other instances
of these extra lines in the other linker scripts you showed.

>   .bss  SIZEOF(.data) + ADDR(.data) :
>   {
>     *(.bss)
>     *(COMMON)
>      end = . ; _end = .;
>      . = ALIGN(0x200);
>   }
> }
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.