From 93f73715d1fd020ec3b19d1eb90f4c1bc0be3ce5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 11 Mar 2008 23:21:08 +0000 Subject: * elf/cr16c.h (SHN_CR16C_FCOMMON): Define using SHN_LORESERVE. (SHN_CR16C_NCOMMON): Likewise. * elf/hppa.h (SHN_PARISC_ANSI_COMMON): Likewise. (SHN_PARISC_HUGE_COMMON): Likewise. * elf/ia64.h (SHN_IA_64_ANSI_COMMON): Likewise. (SHN_IA_64_VMS_SYMVEC): Define using SHN_LOOS. * elf/m32r.h (SHN_M32R_SCOMMON): Define using SHN_LORESERVE. * elf/mips.h (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT): Likewise. (SHN_MIPS_DATA, SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise. * elf/score.h (SHN_SCORE_TEXT, SHN_SCORE_DATA): Likewise. (SHN_SCORE_SCOMMON): Likewise. * elf/sparc.h (SHN_BEFORE, SHN_AFTER): Likewise. * elf/v850.h (SHN_V850_SCOMMON, SHN_V850_TCOMMON): Likewise. (SHN_V850_ZCOMMON): Likewise. * elf/x86-64.h (SHN_X86_64_LCOMMON): Likewise. --- include/elf/ChangeLog | 62 +++++++++++++++++++++++++++++++++------------------ include/elf/cr16c.h | 6 ++--- include/elf/hppa.h | 6 ++--- include/elf/ia64.h | 4 ++-- include/elf/m32r.h | 5 +++-- include/elf/mips.h | 10 ++++----- include/elf/score.h | 8 +++---- include/elf/sparc.h | 6 ++--- include/elf/v850.h | 8 +++---- include/elf/x86-64.h | 4 ++-- 10 files changed, 69 insertions(+), 50 deletions(-) diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 92bd5745b..84888f6f8 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,21 @@ +2008-03-12 Alan Modra + + * elf/cr16c.h (SHN_CR16C_FCOMMON): Define using SHN_LORESERVE. + (SHN_CR16C_NCOMMON): Likewise. + * elf/hppa.h (SHN_PARISC_ANSI_COMMON): Likewise. + (SHN_PARISC_HUGE_COMMON): Likewise. + * elf/ia64.h (SHN_IA_64_ANSI_COMMON): Likewise. + (SHN_IA_64_VMS_SYMVEC): Define using SHN_LOOS. + * elf/m32r.h (SHN_M32R_SCOMMON): Define using SHN_LORESERVE. + * elf/mips.h (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT): Likewise. + (SHN_MIPS_DATA, SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise. + * elf/score.h (SHN_SCORE_TEXT, SHN_SCORE_DATA): Likewise. + (SHN_SCORE_SCOMMON): Likewise. + * elf/sparc.h (SHN_BEFORE, SHN_AFTER): Likewise. + * elf/v850.h (SHN_V850_SCOMMON, SHN_V850_TCOMMON): Likewise. + (SHN_V850_ZCOMMON): Likewise. + * elf/x86-64.h (SHN_X86_64_LCOMMON): Likewise. + 2008-03-03 Pallavi Tambay * dwarf2.h: (enum dwarf_location_atom): Add new DW_OP: @@ -11,27 +29,27 @@ 2008-01-30 Tristan Gingold Add OpenVMS extensions. - * ia64.h (SHF_IA_64_VMS_GLOBAL, SHF_IA_64_VMS_OVERLAID) - (SHF_IA_64_VMS_SHARED, SHF_IA_64_VMS_VECTOR) + * ia64.h (SHF_IA_64_VMS_GLOBAL, SHF_IA_64_VMS_OVERLAID) + (SHF_IA_64_VMS_SHARED, SHF_IA_64_VMS_VECTOR) (SHF_IA_64_VMS_ALLOC_64BIT, SHF_IA_64_VMS_PROTECTED) - (SHT_IA_64_VMS_TRACE, SHT_IA_64_VMS_TIE_SIGNATURES) - (SHT_IA_64_VMS_DEBUG, SHT_IA_64_VMS_DEBUG_STR) - (SHT_IA_64_VMS_LINKAGES, SHT_IA_64_VMS_SYMBOL_VECTOR) - (SHT_IA_64_VMS_FIXUP, DT_IA_64_VMS_SUBTYPE) - (DT_IA_64_VMS_IMGIOCNT, DT_IA_64_VMS_LNKFLAGS) - (DT_IA_64_VMS_VIR_MEM_BLK_SIZ, DT_IA_64_VMS_IDENT) - (DT_IA_64_VMS_NEEDED_IDENT, DT_IA_64_VMS_IMG_RELA_CNT) - (DT_IA_64_VMS_SEG_RELA_CNT, DT_IA_64_VMS_FIXUP_RELA_CNT) - (DT_IA_64_VMS_FIXUP_NEEDED, DT_IA_64_VMS_SYMVEC_CNT) - (DT_IA_64_VMS_XLATED, DT_IA_64_VMS_STACKSIZE) - (DT_IA_64_VMS_UNWINDSZ, DT_IA_64_VMS_UNWIND_CODSEG) - (DT_IA_64_VMS_UNWIND_INFOSEG, DT_IA_64_VMS_LINKTIME) - (DT_IA_64_VMS_SEG_NO, DT_IA_64_VMS_SYMVEC_OFFSET) - (DT_IA_64_VMS_SYMVEC_SEG, DT_IA_64_VMS_UNWIND_OFFSET) - (DT_IA_64_VMS_UNWIND_SEG, DT_IA_64_VMS_STRTAB_OFFSET) - (DT_IA_64_VMS_SYSVER_OFFSET, DT_IA_64_VMS_IMG_RELA_OFF) - (DT_IA_64_VMS_SEG_RELA_OFF, DT_IA_64_VMS_FIXUP_RELA_OFF) - (DT_IA_64_VMS_PLTGOT_OFFSET, DT_IA_64_VMS_PLTGOT_SEG) + (SHT_IA_64_VMS_TRACE, SHT_IA_64_VMS_TIE_SIGNATURES) + (SHT_IA_64_VMS_DEBUG, SHT_IA_64_VMS_DEBUG_STR) + (SHT_IA_64_VMS_LINKAGES, SHT_IA_64_VMS_SYMBOL_VECTOR) + (SHT_IA_64_VMS_FIXUP, DT_IA_64_VMS_SUBTYPE) + (DT_IA_64_VMS_IMGIOCNT, DT_IA_64_VMS_LNKFLAGS) + (DT_IA_64_VMS_VIR_MEM_BLK_SIZ, DT_IA_64_VMS_IDENT) + (DT_IA_64_VMS_NEEDED_IDENT, DT_IA_64_VMS_IMG_RELA_CNT) + (DT_IA_64_VMS_SEG_RELA_CNT, DT_IA_64_VMS_FIXUP_RELA_CNT) + (DT_IA_64_VMS_FIXUP_NEEDED, DT_IA_64_VMS_SYMVEC_CNT) + (DT_IA_64_VMS_XLATED, DT_IA_64_VMS_STACKSIZE) + (DT_IA_64_VMS_UNWINDSZ, DT_IA_64_VMS_UNWIND_CODSEG) + (DT_IA_64_VMS_UNWIND_INFOSEG, DT_IA_64_VMS_LINKTIME) + (DT_IA_64_VMS_SEG_NO, DT_IA_64_VMS_SYMVEC_OFFSET) + (DT_IA_64_VMS_SYMVEC_SEG, DT_IA_64_VMS_UNWIND_OFFSET) + (DT_IA_64_VMS_UNWIND_SEG, DT_IA_64_VMS_STRTAB_OFFSET) + (DT_IA_64_VMS_SYSVER_OFFSET, DT_IA_64_VMS_IMG_RELA_OFF) + (DT_IA_64_VMS_SEG_RELA_OFF, DT_IA_64_VMS_FIXUP_RELA_OFF) + (DT_IA_64_VMS_PLTGOT_OFFSET, DT_IA_64_VMS_PLTGOT_SEG) (DT_IA_64_VMS_FPMODE, SHN_IA_64_VMS_SYMVEC): Define 2008-01-16 Mark Kettenis @@ -43,9 +61,9 @@ * dwarf2.h (DW_AT_hi_user): Correct value. 2007-12-07 Bob Wilson - + * xtensa.h (R_XTENSA_32_PCREL): New. - + 2007-11-29 Mark Shinwell * mips.h (E_MIPS_MACH_LS2E): New. diff --git a/include/elf/cr16c.h b/include/elf/cr16c.h index de66a496a..863fea660 100644 --- a/include/elf/cr16c.h +++ b/include/elf/cr16c.h @@ -1,5 +1,5 @@ /* CR16C ELF support for BFD. - Copyright 2004 Free Software Foundation, Inc. + Copyright 2004, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -246,8 +246,8 @@ END_RELOC_NUMBERS (RINDEX_16C_MAX) values have a special meaning. */ /* Far common symbol. */ -#define SHN_CR16C_FCOMMON 0xff00 -#define SHN_CR16C_NCOMMON 0xff01 +#define SHN_CR16C_FCOMMON SHN_LORESERVE +#define SHN_CR16C_NCOMMON (SHN_LORESERVE + 1) typedef struct reloc_map { diff --git a/include/elf/hppa.h b/include/elf/hppa.h index c9b3200ac..a4ec28fcd 100644 --- a/include/elf/hppa.h +++ b/include/elf/hppa.h @@ -1,5 +1,5 @@ /* HPPA ELF support for BFD. - Copyright 1993, 1994, 1995, 1998, 1999, 2000, 2005, 2006 + Copyright 1993, 1994, 1995, 1998, 1999, 2000, 2005, 2006, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -54,11 +54,11 @@ /* Special section indices. */ /* A symbol that has been declared as a tentative definition in an ANSI C compilation. */ -#define SHN_PARISC_ANSI_COMMON 0xff00 +#define SHN_PARISC_ANSI_COMMON SHN_LORESERVE /* A symbol that has been declared as a common block using the huge memory model. */ -#define SHN_PARISC_HUGE_COMMON 0xff01 +#define SHN_PARISC_HUGE_COMMON (SHN_LORESERVE + 1) /* Processor specific section types. */ diff --git a/include/elf/ia64.h b/include/elf/ia64.h index 7ee271f57..d86d6304b 100644 --- a/include/elf/ia64.h +++ b/include/elf/ia64.h @@ -158,11 +158,11 @@ /* This section only used by HP-UX, The HP linker gives weak symbols precedence over regular common symbols. We want common to override weak. Using this common instead of SHN_COMMON does that. */ -#define SHN_IA_64_ANSI_COMMON 0xFF00 +#define SHN_IA_64_ANSI_COMMON SHN_LORESERVE /* This section is only used by OpenVMS. Symbol is defined in the symbol vector (only possible for image files). */ -#define SHN_IA_64_VMS_SYMVEC 0xff20 +#define SHN_IA_64_VMS_SYMVEC SHN_LOOS /* IA64-specific relocation types: */ diff --git a/include/elf/m32r.h b/include/elf/m32r.h index d648df904..209dab648 100644 --- a/include/elf/m32r.h +++ b/include/elf/m32r.h @@ -1,5 +1,6 @@ /* M32R ELF support for BFD. - Copyright 1996, 1997, 1998, 1999, 2000, 2003, 2004 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2003, 2004, 2008 + Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -80,7 +81,7 @@ END_RELOC_NUMBERS (R_M32R_max) values have a special meaning. */ /* Small common symbol. */ -#define SHN_M32R_SCOMMON 0xff00 +#define SHN_M32R_SCOMMON SHN_LORESERVE /* Processor specific section flags. */ diff --git a/include/elf/mips.h b/include/elf/mips.h index 7b72cacc9..55ecfb3c0 100644 --- a/include/elf/mips.h +++ b/include/elf/mips.h @@ -226,21 +226,21 @@ END_RELOC_NUMBERS (R_MIPS_maxext) /* Defined and allocated common symbol. Value is virtual address. If relocated, alignment must be preserved. */ -#define SHN_MIPS_ACOMMON 0xff00 +#define SHN_MIPS_ACOMMON SHN_LORESERVE /* Defined and allocated text symbol. Value is virtual address. Occur in the dynamic symbol table of Alpha OSF/1 and Irix 5 executables. */ -#define SHN_MIPS_TEXT 0xff01 +#define SHN_MIPS_TEXT (SHN_LORESERVE + 1) /* Defined and allocated data symbol. Value is virtual address. Occur in the dynamic symbol table of Alpha OSF/1 and Irix 5 executables. */ -#define SHN_MIPS_DATA 0xff02 +#define SHN_MIPS_DATA (SHN_LORESERVE + 2) /* Small common symbol. */ -#define SHN_MIPS_SCOMMON 0xff03 +#define SHN_MIPS_SCOMMON (SHN_LORESERVE + 3) /* Small undefined symbol. */ -#define SHN_MIPS_SUNDEFINED 0xff04 +#define SHN_MIPS_SUNDEFINED (SHN_LORESERVE + 4) /* Processor specific section types. */ diff --git a/include/elf/score.h b/include/elf/score.h index ec3b32f16..72ada0548 100644 --- a/include/elf/score.h +++ b/include/elf/score.h @@ -1,5 +1,5 @@ /* Score ELF support for BFD. - Copyright 2006 Free Software Foundation, Inc. + Copyright 2006, 2008 Free Software Foundation, Inc. Contributed by Mei Ligang (ligang@sunnorth.com.cn) Pei-Lin Tsai (pltsai@sunplus.com) @@ -44,10 +44,10 @@ /* Defined and allocated common symbol. Value is virtual address. If relocated, alignment must be preserved. */ -#define SHN_SCORE_TEXT 0xff01 -#define SHN_SCORE_DATA 0xff02 +#define SHN_SCORE_TEXT (SHN_LORESERVE + 1) +#define SHN_SCORE_DATA (SHN_LORESERVE + 2) /* Small common symbol. */ -#define SHN_SCORE_SCOMMON 0xff03 +#define SHN_SCORE_SCOMMON (SHN_LORESERVE + 3) /* Processor specific section flags. */ diff --git a/include/elf/sparc.h b/include/elf/sparc.h index dc20820ec..9572b0cdd 100644 --- a/include/elf/sparc.h +++ b/include/elf/sparc.h @@ -1,5 +1,5 @@ /* SPARC ELF support for BFD. - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003 + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2008 Free Software Foundation, Inc. By Doug Evans, Cygnus Support, . @@ -45,8 +45,8 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. /* Section indices. */ -#define SHN_BEFORE 0xff00 /* used with SHF_ORDERED */ -#define SHN_AFTER 0xff01 /* used with SHF_ORDERED */ +#define SHN_BEFORE SHN_LORESERVE /* used with SHF_ORDERED */ +#define SHN_AFTER (SHN_LORESERVE + 1) /* used with SHF_ORDERED */ /* Section flags. */ diff --git a/include/elf/v850.h b/include/elf/v850.h index a88969d91..9f4bc0177 100644 --- a/include/elf/v850.h +++ b/include/elf/v850.h @@ -1,5 +1,5 @@ /* V850 ELF support for BFD. - Copyright 1997, 1998, 2000, 2002, 2003, 2004, 2007 + Copyright 1997, 1998, 2000, 2002, 2003, 2004, 2007, 2008 Free Software Foundation, Inc. Created by Michael Meissner, Cygnus Support @@ -88,13 +88,13 @@ END_RELOC_NUMBERS (R_V850_max) values have a special meaning. */ /* Small data area common symbol. */ -#define SHN_V850_SCOMMON 0xff00 +#define SHN_V850_SCOMMON SHN_LORESERVE /* Tiny data area common symbol. */ -#define SHN_V850_TCOMMON 0xff01 +#define SHN_V850_TCOMMON (SHN_LORESERVE + 1) /* Zero data area common symbol. */ -#define SHN_V850_ZCOMMON 0xff02 +#define SHN_V850_ZCOMMON (SHN_LORESERVE + 2) /* Processor specific section types. */ diff --git a/include/elf/x86-64.h b/include/elf/x86-64.h index b09a558a3..97b53948f 100644 --- a/include/elf/x86-64.h +++ b/include/elf/x86-64.h @@ -1,5 +1,5 @@ /* x86_64 ELF support for BFD. - Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 + Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2008 Free Software Foundation, Inc. Contributed by Jan Hubicka @@ -81,7 +81,7 @@ END_RELOC_NUMBERS (R_X86_64_max) /* Like SHN_COMMON but the symbol will be allocated in the .lbss section. */ -#define SHN_X86_64_LCOMMON 0xff02 +#define SHN_X86_64_LCOMMON (SHN_LORESERVE + 2) #define SHF_X86_64_LARGE 0x10000000 #endif -- cgit v1.2.3