NetBSD/distrib
martin 8c71c34bb7 Pull up following revision(s) (requested by riastradh in ticket #1886):
distrib/sets/lists/debug/mi			1.409 (patch)
	distrib/sets/lists/tests/mi			1.1280 (patch)
	libexec/ld.elf_so/Makefile			1.145-1.147 (patch)
	libexec/ld.elf_so/hash.c			1.1
	libexec/ld.elf_so/hash.h			1.1
	libexec/ld.elf_so/reloc.c			1.118 (patch)
	libexec/ld.elf_so/rtld.c			1.215 (patch)
	libexec/ld.elf_so/rtld.h			1.145,1.147 (patch)
	libexec/ld.elf_so/symbol.c			1.74-1.76 (patch)
	tests/libexec/ld.elf_so/Makefile		1.21 (patch)
	tests/libexec/ld.elf_so/t_hash.c		1.1

The SysV ABI specifies that the symbol hash function should return only 32
bits of hash. Unfortunately due to an implementation bu and the fact that
the return type is unsigned long which is 64 bits in LP64, this can fail
in some cases: "\xff\x0f\x0f\x0f\x0f\x0f\x12". See:
	https://maskray.me/blog/2023-04-12-elf-hash-function

From Ed Maste @ FreeBSD:
	https://cgit.freebsd.org/src/commit/?id=29e3a06510823edbb91667d21f530d3ec778116d

Need to write Unit Tests for this.

Oops wrong mask.

ld.elf_so: Split SRCS onto multiple lines.
Makes updates easier.
No functional change intended.

ld.elf_so: Sort SRCS.
No functional change intended.

ld.elf_so: Split hash functions into a separate file.
This way we can test them in isolation.
No functional change intended.

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.
2023-08-09 16:16:40 +00:00
..
acorn26 += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
acorn32 += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
alpha += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
amd64 Pull up following revision(s) (requested by alnsn in ticket #1252): 2019-05-01 09:09:33 +00:00
amiga Pull up following revision(s) (requested by abs in ticket #1823): 2023-06-03 15:09:01 +00:00
arc Slightly increase the image size 2017-05-12 07:26:35 +00:00
atari Pull up following revision(s) (requested by tsutsui in ticket #393): 2017-11-27 11:31:52 +00:00
bebox more gnu directory removal. 2017-04-12 17:29:49 +00:00
cats += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
cdrom add chrp 2017-02-15 22:47:27 +00:00
cobalt += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
common Pull up following revision(s) (requested by sevan in ticket #1158): 2019-01-11 15:37:28 +00:00
dreamcast += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
emips loosen the belt again. 2017-02-09 14:00:06 +00:00
evbarm Pull up the following trying to fix the build: 2018-11-01 07:52:59 +00:00
evbarm64/ramdisk += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
evbmips += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
evbppc Give clang a bit more space on the RAM disk. 2017-02-09 15:24:08 +00:00
evbsh3 more gnu directory removal. 2017-04-12 17:29:49 +00:00
ews4800mips += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
hp300 Pull up following revision(s) (requested by tsutsui in ticket #1639): 2020-12-19 19:02:52 +00:00
hpcarm Pull up following revision(s) (requested by sevan in ticket #1341): 2019-08-21 14:28:34 +00:00
hpcmips Pull up following revision(s) (requested by sevan in ticket #1341): 2019-08-21 14:28:34 +00:00
hpcsh Pull up following revision(s) (requested by sevan in ticket #1341): 2019-08-21 14:28:34 +00:00
hppa += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
i386 Pull up following revision(s) (requested by alnsn in ticket #1252): 2019-05-01 09:09:33 +00:00
ia64 Fix the build, we don't support installboot for ia64 2017-01-09 13:36:22 +00:00
ibmnws += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
landisk += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
luna68k += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
mac68k Pull up following revision(s) (requested by tsutsui in ticket #1639): 2020-12-19 19:02:52 +00:00
macppc += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
miniroot Pull up following revision(s) (requested by tsutsui in ticket #1686): 2021-06-25 19:13:20 +00:00
mipsco += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
mvme68k Pull up following revision(s) (requested by tsutsui in ticket #1639): 2020-12-19 19:02:52 +00:00
mvmeppc
news68k += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
newsmips += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
notes Pull up following revision(s) (requested by tsutsui in ticket #1674): 2021-04-30 13:59:23 +00:00
ofppc Initial pass to be unaffected by build umask on build artifacts 2017-02-10 16:43:59 +00:00
playstation2 += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
pmax += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
prep += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
riscv += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
rs6000 += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
sandpoint += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
sets Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
sgimips Pull up following revision(s) (requested by tsutsui in ticket #1017): 2018-09-10 15:52:36 +00:00
shark += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
sparc Bump the ram disk and miniroot size slightly for clang. 2017-02-09 18:15:07 +00:00
sparc64 Initial pass to be unaffected by build umask on build artifacts 2017-02-10 16:43:59 +00:00
sun2 Pull up following revision(s) (requested by tsutsui in ticket #1686): 2021-06-25 19:13:20 +00:00
sun3 Pull up following revision(s) (requested by tsutsui in ticket #1686): 2021-06-25 19:13:20 +00:00
syspkg
utils Pull up following revision(s) (requested by jmcneill in ticket #114): 2017-07-18 19:13:07 +00:00
vax more gnu directory removal. 2017-04-12 17:29:49 +00:00
x68k more MKREPRO_TIMESTAMP fixes (for pax/tar generated files) 2017-02-11 03:07:06 +00:00
zaurus Shrink the ramdisk of INSTALL kernel for zaurus in order to fit within 5MB. 2017-02-08 20:11:18 +00:00
Makefile
Makefile.inc