freebsd-dev/stand/common
Roger Pau Monné 12363d8ea3 loader: fix endianness conversion
r328536 broke symbol loading on amd64 at least (and probably other
arches). r328826 contained the problem to ppc only by adding
pre-processors guards.

Fix this properly by moving the endianness conversion to separate
helper functions, and make the conversion more robust by using sizeof
instead of having to manually code the size of each field.

Finally list the fields in each structure in a macro in order to avoid
code repetition.

Sponsored by:		Citrix Systems R&D
Reviewed by:		kib emaste wma
Differential revision:	https://reviews.freebsd.org/D14267
2018-02-09 10:20:16 +00:00
..
bcache.c
boot.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
bootstrap.h Move simple interpreter 'perform' into interp.c and call it 2018-02-07 23:27:38 +00:00
commands.c Don't leak memory when displaying help. 2018-01-23 18:01:27 +00:00
console.c
dev_net.c
dev_net.h
devopen.c
disk.c
disk.h
help.common
install.c Break out the interpreters (simple and forth) w/o ifdefs. This is 2018-01-31 22:46:05 +00:00
interp_backslash.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
interp_forth.c Set script.lang in the environment to either 'forth' or 'simple' to 2018-02-09 00:36:55 +00:00
interp_parse.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
interp_simple.c Set script.lang in the environment to either 'forth' or 'simple' to 2018-02-09 00:36:55 +00:00
interp.c Move simple interpreter 'perform' into interp.c and call it 2018-02-07 23:27:38 +00:00
isapnp.c
isapnp.h
load_elf32_obj.c
load_elf32.c
load_elf64_obj.c
load_elf64.c
load_elf_obj.c Ignore relocation tables for non-memory-resident sections. 2018-02-05 23:35:33 +00:00
load_elf.c loader: fix endianness conversion 2018-02-09 10:20:16 +00:00
ls.c
Makefile.depend
md.c
merge_help.awk
misc.c There's no tainted data here, tag it as such to avoid the slew of 2018-01-23 18:01:40 +00:00
module.c
newvers.sh
part.c
part.h
paths.h
pnp.c Retire pnp.4th and the code needed only for 4th words used here. 2018-02-02 15:01:33 +00:00
rbx.h
reloc_elf32.c
reloc_elf64.c
reloc_elf.c Skip IRELATIVE relocations when loader processes ELF files. 2018-01-11 13:57:30 +00:00
self_reloc.c