Source-Changes-D archive

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

Re: CVS commit: src/sys/conf



uebayasi@ wrote:

> > Modified Files:
> >         src/sys/arch/cats/conf: Makefile.cats.inc
> >         src/sys/arch/shark/conf: Makefile.shark.inc
> >         src/sys/conf: Makefile.kern.inc
> > Added Files:
> >         src/sys/arch/arm/conf: kern.ldscript.head kern.ldscript.tail
> >             mkldscript.sh
> >
> > Log Message:
> > work around a binutils bug where converting ELF kernels to a.out with objcopy
> > produces corrupted binaries when the link_set_* sections extend into another
> > page after the end of the .text section by using a generated an ldscript that
> > puts all the link_set_* data into the .text section in the first place.
> > ---
> >
> > You can see how they can be valid in the Makefiles and
> > kern.ldscript.{head,tail} files.
> >
> > Anyway, it looks required for a.out only but no one will fix
> > a.out features..
> 
> IIUC the requirement for mkldscript.sh users is to merge link_set_*
> sections.  I'll merge link_set_* into .rodata on all ports.  Then this
> hack can go away.

I'm not sure about your goal, but anyway it should be proposed
and discussed proper lists before commit.

In the perfect world, both cats and shark should have native bootloaders
that can load native ELF directly and the a.out hack seems a special case.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index