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

Re: [Minios-devel] [PATCH 36/40] arm64: add the link file



On Mon, Nov 06, 2017 at 05:54:30PM +0000, Julien Grall wrote:
> Hi Shijie,
> 
> On 03/11/17 03:12, Huang Shijie wrote:
> > +++ b/arch/arm/arm64/minios-arm64.lds.S
> > @@ -0,0 +1,76 @@
> > +#include <pagetable.h>
> > +
> > +OUTPUT_FORMAT("elf64-littleaarch64")
> > +OUTPUT_ARCH(aarch64)
> > +ENTRY(_start)
> > +SECTIONS
> > +{
> > +  . = (0xffffffffffffffff << (VA_BITS - 1));
> 
> How did you decide that value?
Just put the code at the beginning of the virtual address.
We use the VA_BITS now. Is there something wrong with this?

> 
> > +  _text = .;                       /* Text and read-only data */
> > +  .text : {
> > +   *(.text)
> > +   *(.gnu.warning)
> > +  }
> > +
> > +  _etext = .;                      /* End of text section */
> > +
> > +  .rodata : { *(.rodata) *(.rodata.*) }
> > +  . = ALIGN(PAGE_SIZE);
> > +  _erodata = .;
> > +
> > +  /* newlib initialization functions */
> > +  . = ALIGN(64 / 8);
> 
> What's that value?
I can fix it.

thanks
Huang Shijie

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.