Add rts/Linker support for more than 64k sections
authorSimon Brenner <olsner@gmail.com>
Sun, 1 Nov 2015 09:15:31 +0000 (10:15 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sun, 1 Nov 2015 09:15:47 +0000 (10:15 +0100)
commit3021cc06f84109c6e7a529318d690c520748f936
treedcd18a551b74c941dfdae24b59d875166b871518
parent8fd5cff6fa1cd943a90f19df87389d10a2cb27d1
Add rts/Linker support for more than 64k sections

Since some ELF fields ran out of range to represent that many sections,
they've been extended with magic numbers that indicate that the full
value is stored in another field.

This will be necessary for GHCi with -split-sections on ELF platforms
that don't use GNU ld.

Reviewers: austin, bgamari, simonmar, erikd

Reviewed By: bgamari, simonmar, erikd

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1357

GHC Trac Issues: #8405
rts/Linker.c