HomePhabricator

[ELF] - Linkerscript: support MIN and MAX.

Description

[ELF] - Linkerscript: support MIN and MAX.

Sample for the OVERLAY command from the spec
(https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/sections.html)
uses MAX command that we do not support currently:

. = 0x1000 + MAX (SIZEOF (.text0), SIZEOF (.text1));

This patch implements support for MIN and MAX.

Differential revision: https://reviews.llvm.org/D44734

Details

Committed
grimarMar 28 2018, 4:33 AM
Differential Revision
D44734: [ELF] - Linkerscript: support MIN and MAX.
Parents
rL328695: Revert "[AMDGPU] For OS type AMDPAL, fixed scratch on compute shader"
Branches
Unknown
Tags
Unknown