tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] VAX libstdc++ common runtime - register used but not saved
On Fri, Jul 28, 2023 at 4:59 PM Anders Magnusson <ragge%tethuvudet.se@localhost> wrote:
>
>
> >> http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/csu/vax/Attic/crt0.c.diff?r1=1.8&r2=1.9&hideattic=0&only_with_tag=MAIN&f=h
> >>
> >> Can we replace 0x0101 to 0x0000 here?
> > Sounds good to me.
> It's historical, yes.
> It was a (quite common) trick to be able to load an a.out image (with
> a.out header stripped using dd first) and begin execution at at first
> address. Use for example in the boot programs.
>
> But please check that a system is bootable before committing this. I'm
> not sure that everything related to exec starts from (address + 2) :-)
Thank you for kind explanation! I've committed it:
http://mail-index.netbsd.org/source-changes/2023/07/28/msg146292.html
The system built with this change boots successfully into multi-user,
and gcc works fine also.
I do not send pull-up request to netbsd-10 for now, as this is rather
"for the sake of clarity" fix :)
Thanks,
rin
Home |
Main Index |
Thread Index |
Old Index