Elf: Fix link info note generation

Authored by bgamari on Dec 2 2019, 11:48 AM.

Description

Elf: Fix link info note generation

Previously we would use the .int assembler directive to generate
32-bit words in the note section. However, .int is note guaranteed to
produce 4-bytes; in fact, on some platforms (e.g. AArch64) it produces
8-bytes. Use the .4bytes directive to avoid this.

Moreover, we used the .align directive, which is quite platform
dependent. On AArch64 it appears to not even be idempotent (despite what
the documentation claims). .balign is consequentially preferred as it
offers consistent behavior across platforms.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Dec 3 2019, 8:05 PM
Parents
rGHC78b67ad0e891: Simplify uniqAway
Branches
Unknown
Tags
Unknown
Marge Bot <ben+marge-bot@smart-cactus.org> committed rGHCf03a41d4bf94: Elf: Fix link info note generation (authored by bgamari).Dec 3 2019, 8:05 PM