coreboot-kgpe-d16/util
Ronald G. Minnich 8db3c2a485 ifdtool: avoid potential unaligned pointer usage
In get_region, ifdtool assigns a not-known-to-be-aligned
pointer to a uint32_t *. Now you know and I know that it is
almost certainly aligned, but clang on OSX doesn't like this,
and it's a dicey thing to do in any event, just waiting
to hit someone hard at some future date.

Assign the pointer to a void * and use memmove to copy
the value to a uint32_t.

This usage is more portable to all little-endian architectures,
now, but is still not endian-safe. I doubt we'll ever care.

Change-Id: Ifb2f260c3363ab0f5b4a59e5a4e0b5ecf049fa96
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: https://review.coreboot.org/19921
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2017-06-02 01:58:20 +02:00
..
abuild util/abuild: Start junit testcase block on kconfig failure 2017-05-27 16:54:23 +02:00
acpi
amdfwtool amdfwtool: Move normal firmware 2 after fanless firmware2s 2017-04-27 23:27:06 +02:00
amdtools
archive
arm_boot_tools/mksunxiboot
autoport util/autoport: Add the PCI ID of the iGPU for the Intel i7 3770K 2017-05-03 20:14:05 +02:00
bimgtool
blobtool blobtool/ifd-x200.set: Fix flashmap0 NR 2017-05-05 22:43:46 +02:00
board_status board_status/towiki.sh: Fix Socket for Sandy and Ivy Bridge 2017-03-14 02:32:36 +01:00
broadcom util/broadcom: Check for successful file access 2016-12-16 18:22:43 +01:00
cbfstool cbfscomptool: fix display of time_t 2017-05-27 01:45:17 +02:00
cbmem cbmem_console: Improve 'cbmem -1' behavior for truncated pre-CBMEM logs 2017-05-18 19:49:43 +02:00
checklist util/checklist: Place tables in proper boot order 2016-08-03 18:01:32 +02:00
chromeos util/chromeos: Make scripts executable 2016-07-30 19:34:20 +02:00
crossgcc crossgcc: disable libsanitizer for the bootstrapped compiler 2017-04-28 06:47:37 +02:00
docker util/docker: Update makefile for servers and local use 2017-04-04 01:49:59 +02:00
dtd_parser
ectool util/ectool: Dump ram by default 2017-04-25 18:46:04 +02:00
exynos
futility util/futility/Makefile: Update clean target 2017-03-29 05:16:49 +02:00
fuzz-tests
genbuild_h
genprof
gitconfig Rename and move util/gitconfig/rebase.sh 2016-10-25 17:09:19 +02:00
hugo util/hugo: no need to enable an interactive terminal 2017-05-26 18:36:47 +02:00
ifdfake util/ifdfake: Add number of regions 2016-12-15 23:47:09 +01:00
ifdtool ifdtool: avoid potential unaligned pointer usage 2017-06-02 01:58:20 +02:00
intelmetool intelmetool: Enable warning *set-but-unused-variable* 2017-05-11 16:42:11 +02:00
inteltool util/inteltool: Add support for Wildcat Point-LP Premium 2017-05-01 00:43:52 +02:00
intelvbttool intelvbttool: cope with errors in open() 2016-07-31 19:23:29 +02:00
ipqheader util: ipq40xx: Scripts to combine SBL and Coreboot ELFs 2016-05-09 09:36:27 +02:00
k8resdump
kbc1126 util: Add tools for dumping and inserting KBC1126 firmware images. 2017-05-11 16:48:40 +02:00
kconfig Kconfig: Change symbol override from warning to notice 2016-12-12 17:53:32 +01:00
lint util/lint: ignore some more binary file types 2017-05-25 23:04:29 +02:00
marvell
me_cleaner util/me_cleaner: Pull the latest changes from upstream 2017-03-02 22:04:08 +01:00
mma mma: update mma setup script for v2.1018 2017-04-24 19:11:34 +02:00
msrtool util/msrtool: Use tabs for indents 2016-10-19 17:02:07 +02:00
mtkheader util: Look for python2 binary instead of python 2016-01-26 00:25:19 +01:00
nvidia util/nvidia/cbootimage: Update to upstream master 2017-04-24 19:19:39 +02:00
nvramtool nvramtool: Don't consider reserved regions to be "out of range" 2016-07-31 19:07:43 +02:00
optionlist
post
release util/release: Update build-release script 2017-05-16 10:54:06 +02:00
riscvtools RISCV: change make-spike-elf to use the coreboot toolchain. 2016-10-15 00:34:27 +02:00
rockchip
romcc util/romcc: Don't reference a variable after checking it for NULL 2017-02-10 18:01:52 +01:00
sconfig lib: provide clearer devicetree semantics 2017-04-25 18:14:38 +02:00
scripts util/scripts/get_maintainer.pl: Remove linux tree check 2017-03-07 15:03:45 +01:00
showdevicetree
spkmodem_recv
superiotool superiotool: Add registers of LPC47N217 2017-05-08 17:45:40 +02:00
uio_usbdebug
vgabios Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00
viatool viatool/quirks: Add newline to end of file 2016-07-28 20:18:10 +02:00
xcompile xcompile: replace -print-librt-file-name with -print-libgcc-file-name 2017-05-16 10:52:37 +02:00