Support on-demand global register allocation from
authorHans-Peter Nilsson <hp@axis.com>
Fri, 1 Feb 2002 08:24:03 +0000 (08:24 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Fri, 1 Feb 2002 08:24:03 +0000 (08:24 +0000)
commit48fa4a5def1116273c2c2a236939e96eb9b6231a
treeb8597630be4f09f870fede949598daddae5d1d15
parent930b4cb2c2da2be8643a1e79fe09fe7328544d32
Support on-demand global register allocation from
R_MMIX_BASE_PLUS_OFFSET relocs.
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
mmix_set_reg_section_vma.  Call
_bfd_mmix_finalize_linker_allocated_gregs.
(mmix_before_allocation): New function.
(LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
(LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
* scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
(.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
before .MMIX.reg_contents.
* emultempl/mmo.em (gldmmo_before_allocation): Define to default.
(mmo_after_open): New function.
(LDEMUL_AFTER_OPEN): Define to mmo_after_open.
* emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
.MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
ld/ChangeLog
ld/emulparams/elf64mmix.sh
ld/emultempl/mmix-elfnmmo.em
ld/emultempl/mmo.em
ld/scripttempl/mmo.sc