NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-arm/48193: On NetBSD/evbearmv6hf-el for Raspberry Pi, MACHINE_ARCH returns earm, but *hf* is expected in /usr/share/mk/bsd.own.mk .
The following reply was made to PR port-arm/48193; it has been noted by GNATS.
From: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-arm/48193: On NetBSD/evbearmv6hf-el for Raspberry Pi,
MACHINE_ARCH returns earm, but *hf* is expected in
/usr/share/mk/bsd.own.mk .
Date: Sun, 15 Sep 2013 08:39:14 +0900 (JST)
Hi
>> That doesn't really work since the kernel is always softfloat.
>>
>> I fixed it differently by embedding the MACHINE_ARCH in a note
>> in the executable. The kernel records the supplied MACHINE_ARCH
>> in and returns when a sysctl for hw.machine_arch is done.
>
> Which commit is for this fix?
> Could you show me the diff?
> I want to learn the way.
For the record.
matt@ tells me the following commits are embedding the MACHINE_ARCH
in a note in the executable.
http://mail-index.netbsd.org/source-changes/2013/09/10/msg047399.html
Module Name: src
Committed By: matt
Date: Tue Sep 10 16:24:02 UTC 2013
Modified Files:
src/sys/sys: exec_elf.h
Log Message:
Add a NetBSD note variant for recording the machine_arch for which the
executable was built. (currently only used by earm variants)
To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/sys/exec_elf.h
http://mail-index.netbsd.org/source-changes/2013/09/10/msg047400.html
Module Name: src
Committed By: matt
Date: Tue Sep 10 16:35:10 UTC 2013
Modified Files:
src/libexec/ld.elf_so: sysident.h
src/libexec/ld.elf_so/arch/arm: Makefile.inc
Log Message:
For earm, emit a MARCH note.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/libexec/ld.elf_so/sysident.h
cvs rdiff -u -r1.19 -r1.20 src/libexec/ld.elf_so/arch/arm/Makefile.inc
http://mail-index.netbsd.org/source-changes/2013/09/10/msg047401.html
Module Name: src
Committed By: matt
Date: Tue Sep 10 16:45:33 UTC 2013
Modified Files:
src/lib/csu: Makefile
src/lib/csu/arch/earm: Makefile.inc
src/lib/csu/common: Makefile.inc sysident.S sysident_assym.cf
Log Message:
Add support for a NetBSD MARCH elf note to record the MACHINE_ARCH for
which a program was compiled.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/csu/Makefile
cvs rdiff -u -r1.2 -r1.3 src/lib/csu/arch/earm/Makefile.inc
cvs rdiff -u -r1.16 -r1.17 src/lib/csu/common/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 src/lib/csu/common/sysident.S \
src/lib/csu/common/sysident_assym.cf
http://mail-index.netbsd.org/source-changes/2013/09/10/msg047406.html
Module Name: src
Committed By: matt
Date: Tue Sep 10 17:23:55 UTC 2013
Modified Files:
src/lib/csu/common: sysident_assym.cf
Log Message:
MARCH note is conditional
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/csu/common/sysident_assym.cf
http://mail-index.netbsd.org/source-changes/2013/09/10/msg047416.html
Module Name: src
Committed By: matt
Date: Tue Sep 10 21:30:21 UTC 2013
Modified Files:
src/sys/arch/arm/arm: cpu_exec.c
src/sys/arch/arm/arm32: arm32_machdep.c vm_machdep.c
src/sys/kern: exec_elf.c kern_exec.c kern_proc.c
src/sys/sys: exec.h
Log Message:
Support an optional MARCH ELF tag.
Store the MACHINE_ARCH of the executable in mdproc and override sysctl
so that value returned.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/arm/cpu_exec.c
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/arm/arm32/arm32_machdep.c
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/arm/arm32/vm_machdep.c
cvs rdiff -u -r1.46 -r1.47 src/sys/kern/exec_elf.c
cvs rdiff -u -r1.361 -r1.362 src/sys/kern/kern_exec.c
cvs rdiff -u -r1.187 -r1.188 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.139 -r1.140 src/sys/sys/exec.h
http://mail-index.netbsd.org/source-changes/2013/09/10/msg047417.html
Module Name: src
Committed By: matt
Date: Tue Sep 10 22:00:01 UTC 2013
Modified Files:
src/lib/csu/arch/arm: Makefile.inc
Log Message:
Define ELF_NOTE_MARCH_DESC for when running non-eabi in compat_netbsd32
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/csu/arch/arm/Makefile.inc
http://mail-index.netbsd.org/source-changes/2013/09/11/msg047424.html
Module Name: src
Committed By: matt
Date: Wed Sep 11 04:24:48 UTC 2013
Modified Files:
src/sys/arch/arm/include: proc.h
Log Message:
Add md_march and PROC0_MD_INITIALIZERS
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/arm/include/proc.h
http://mail-index.netbsd.org/source-changes/2013/09/11/msg047439.html
Module Name: src
Committed By: matt
Date: Wed Sep 11 18:53:54 UTC 2013
Modified Files:
src/external/gpl3/binutils/dist/binutils: readelf.c
src/external/gpl3/binutils/dist/include/elf: common.h
Log Message:
Teach readelf how to interpet netbsd notes.
Notes at offset 0x00000128 with length 0x00000018:
Owner Data size Description
NetBSD 0x00000004 IDENT 699002300 (6.99.23)
Notes at offset 0x00000154 with length 0x00000020:
Owner Data size Description
NetBSD 0x00000009 MARCH <earmv7hf>
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils/dist/binutils/readelf.c
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/binutils/dist/include/elf/common.h
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index