From: Rafael Espindola Date: Mon, 30 Jan 2017 14:39:48 +0000 (+0000) Subject: Revert "Fix the values of two xcore ELF flags." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d66fa9327f989e77dbda3edbd7b5e901a497d46;p=llvm Revert "Fix the values of two xcore ELF flags." This reverts commit r293480. The patch is correct, but found bugs in other areas that need to be fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293481 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index 9bbec86a45c..3ea4da81ad9 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -751,21 +751,21 @@ enum : unsigned { // Start of target-specific flags. + /// XCORE_SHF_CP_SECTION - All sections with the "c" flag are grouped + /// together by the linker to form the constant pool and the cp register is + /// set to the start of the constant pool by the boot code. + XCORE_SHF_CP_SECTION = 0x800U, + + /// XCORE_SHF_DP_SECTION - All sections with the "d" flag are grouped + /// together by the linker to form the data section and the dp register is + /// set to the start of the section by the boot code. + XCORE_SHF_DP_SECTION = 0x1000U, + SHF_MASKOS = 0x0ff00000, // Bits indicating processor-specific flags. SHF_MASKPROC = 0xf0000000, - /// All sections with the "d" flag are grouped together by the linker to form - /// the data section and the dp register is set to the start of the section by - /// the boot code. - XCORE_SHF_DP_SECTION = 0x10000000, - - /// All sections with the "c" flag are grouped together by the linker to form - /// the constant pool and the cp register is set to the start of the constant - /// pool by the boot code. - XCORE_SHF_CP_SECTION = 0x20000000, - // If an object file section does not have this flag set, then it may not hold // more than 2GB and can be freely referred to in objects using smaller code // models. Otherwise, only objects using larger code models can refer to them.