amd/rtld: update the ELF representation of LDS symbols
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 16 Jun 2019 23:24:29 +0000 (01:24 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 25 Jun 2019 01:04:10 +0000 (21:04 -0400)
commitbd3a3fd25ad67cc07cb2a6c90ff72314ff597247
tree03b7004f8b671a8455e8b89fffacfd43d4cac4de
parent0032f6b8a0f9d1c8082ea795464010fbb687ab4c
amd/rtld: update the ELF representation of LDS symbols

The initial prototype used a processor-specific symbol type, but
feedback suggests that an approach using processor-specific section
name that encodes the alignment analogous to SHN_COMMON symbols is
preferred.

This patch keeps both variants around for now to reduce problems
with LLVM compatibility as we switch branches around.

This also cleans up the error reporting in this function.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_rtld.c