plan9fox/sys/src
cinap_lenrek ecdf3f921e ?l: remove direct hunk manipulation from linkers, just call malloc()
as with recent changes, cc's malloc() could make the hunk pointer
misaligned. in the the compilers, the hunk pointer is used directly
by the lexer with no effort to to keep the hunk pointer aligned.

alloc/malloc still return aligned pointers, but hunk itself can
be on a odd address after allocation of a odd sized amount of bytes.

however, in the linkers, this assumption appears to be differnet. as
most allocations mostly allocate padded structures. however, symbol
lookup allocates strings on byte-size ganularity and the cc's malloc
would misalign the hunk pointer after the malloc() call. while the
rest of the code assumed hunk pointer was always aligned.

this change removes all the hunk pointer fiddling from the linker,
and we just call malloc() (which will use the fast implmenentation
of cc, and should not really make much of a performance difference).
2020-05-12 22:04:30 +02:00
..
9 devip: fix ifc recursive rlock() deadlock 2020-05-10 22:51:40 +02:00
ape [ape] add missing conversion flags for scanf 2020-05-12 10:48:33 -07:00
boot 9bootpxe: simplify 2020-04-08 23:48:09 +02:00
cmd ?l: remove direct hunk manipulation from linkers, just call malloc() 2020-05-12 22:04:30 +02:00
games make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
lib9p lib9p: reject reads on closed fids and writes on directories 2020-04-27 19:55:42 +02:00
libaml
libauth make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
libauthsrv libauthsrv: authdial smprint() out of memory autism 2019-04-06 20:23:00 +02:00
libavl
libbin
libbio
libc Add test for pow.c 2019-06-16 18:21:52 -07:00
libcomplete
libcontrol
libdisk
libdraw libdraw: fix mount() error handling in newwindow() 2020-05-02 17:05:17 +02:00
libdtracy
libfis
libflate
libframe
libgeometry
libhtml
libhttpd always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
libip
libjson
liblex
libmach libmach: remove newline 2019-05-09 10:27:17 +02:00
libmemdraw libmemdraw: remove inexistent build targets 2020-04-19 15:30:58 +02:00
libmemlayer
libmp libmp: add dummy mkfile for arm64 2019-05-03 21:02:13 +02:00
libndb
libplumb
libregexp
libsat
libscribble
libsec libsec/base58enc: null-terminate the result 2020-04-28 12:49:05 +02:00
libstdio fix '%[]' specifiers and '%n' (thanks phil9) 2020-05-09 15:10:39 -07:00
libString
libsunrpc
libthread libthread: initial support for arm64 2019-05-03 21:03:12 +02:00
libttf
libventi sys/src/libventi: implement vtsha1 and vtsha1check functions 2019-09-06 11:55:18 -07:00
mkfile
mkfile.proto arm64: add mkfile 2019-05-03 21:12:31 +02:00