outlib: add infrastructure for common section and symbol handling
commit2770fc7ac6674a7fd3ef895cecae5d9b5b722dc1
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Sun, 28 Jun 2020 05:08:26 +0000 (27 22:08 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Sun, 28 Jun 2020 05:11:27 +0000 (27 22:11 -0700)
treec581206cb47a6133a819a4855108001bb984706a
parentc59337797f2dac6c89c66440f3d30d468adf5bbc
outlib: add infrastructure for common section and symbol handling

Pretty much all the backends have to do the same gymnastics to handle
symbols and sections. In the future, this should be done by the
assembly core, but in order to prepare the ground and get the
performance benefits as soon as possible, implement a library of
functions which can manage symbols and sections and their respective
hashes, trees, and tables.

This infrastructure is not yet used by any backend, that porting work
has to come next.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
output/outlib.c
output/outlib.h