ld question
erik.ivanenko
erik.ivanenko@utoronto.ca
Fri Jun 25 13:53:00 GMT 1999
biguo@263.net wrote:
> Hello,everyone!I am building a cross GNAT/RTEMS tools on i386EX board.The start address of IDT/GDT and stack don't be defined in file linkcmds.Which file are they be defined?That is to say,how GNU ld define the start address of IDT/GDT and STACK?Another question:Is memory layout in file linkcmds only used to burn application into target board,not in GDB state?Thanks.
> _______________________________________________
> 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.
I've mailed this response to the RTEMS list as well:
The idt and gdt are defined in the data section -- see start.S. The data
section is copied into RAM from ROM prior to the switch to protected mode.
There is no need to explicitly locate these tables.
The stack is also established in start.S, using symbols defined in the
linkcmds script.
I don't understand your last question, but I will try an answer: The
linkcmds script is designed to "burn and run". However, GDB can be setup to
debug the target via serial port ( "target remote" ) or ethernet card. I
myself have only debugged by serial port, although the ethernet debugging
should be simple. The pc386 BSP should have examples.
Hope this helps.
More information about the crossgcc
mailing list