diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-02 12:48:23 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-12-03 21:05:27 -0500 |
commit | f03a41d4bf9418ee028ecb51654c928b2da74edd (patch) | |
tree | 8314eef64683ddd08a9e2c3d104cedfa7de2ff00 /ghc | |
parent | 78b67ad0e891fc3b66df72643fb173dc985e8306 (diff) | |
download | haskell-f03a41d4bf9418ee028ecb51654c928b2da74edd.tar.gz |
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.
Diffstat (limited to 'ghc')
0 files changed, 0 insertions, 0 deletions