Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2010 14:45:16 +0530
From:      "Jayachandran C." <c.jayachandran@gmail.com>
To:        Juli Mallett <jmallett@freebsd.org>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: Merging 64 bit changes to -HEAD - part 4
Message-ID:  <AANLkTimI_wBK2vV--foeTtDl1C3_7UjdjRyGs6_fn4aB@mail.gmail.com>
In-Reply-To: <AANLkTins4AtUpmNPm9gouJ9KuEpSMCiM7haUUe50oTz6@mail.gmail.com>
References:  <AANLkTikSVi27V2UICgLvKd8Bk7v6tuGty9YX6-C6-21H@mail.gmail.com> <20100708.021250.1099368555950605809.imp@bsdimp.com> <AANLkTins4AtUpmNPm9gouJ9KuEpSMCiM7haUUe50oTz6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 8, 2010 at 1:59 PM, Juli Mallett <jmallett@freebsd.org> wrote:
> On Thu, Jul 8, 2010 at 01:12, M. Warner Losh <imp@bsdimp.com> wrote:
>> In message: <AANLkTikSVi27V2UICgLvKd8Bk7v6tuGty9YX6-C6-21H@mail.gmail.co=
m>
>> =A0 =A0 =A0 =A0 =A0 =A0"Jayachandran C." <c.jayachandran@gmail.com> writ=
es:
>> : ldscript-64.patch
>> : =A064 bit linker script (JC)
>> : =A0linker script for 64 bit compilation, and XLR configuration file.
>>
>> I wonder if the octeon ld script can be merged or if we can use this
>> for octeon. =A0Some investigation is warranted, I think...
>
> No investigation needed.
>
> U-Boot, at least on Octeon, requires only one (executable) program
> header, so it's necessary for Octeon to use its own ldscript -- I
> suspect other bootloaders have likewise weird constraints. =A0That said,
> there's really no need for all of these separate linker scripts,
> assuming you use buildkernel and have TARGET_ABI set right when you
> build kernel-toolchain. =A0I use a single linker script for all Octeon
> kernels, I think. =A0You don't need to specify the output format.

We could probably make the single script you have as the standard
script if it works for most bootloaders.

I still don't like the way   ARCH_FLAGS and LDSCRIPT_NAME needs to be
specified in the conf file - this could be taken from TARGET_ABI
too...

JC.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimI_wBK2vV--foeTtDl1C3_7UjdjRyGs6_fn4aB>