diff options
author | Keith Seitz <keiths@redhat.com> | 2017-08-17 13:58:01 -0700 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2017-08-17 13:58:01 -0700 |
commit | b5f28d7abc02ca509e389fa932d725cf111e4b40 (patch) | |
tree | 57a0dc0feaff890630a6ba2c9fab811d56b1f9cf /elfcpp | |
parent | 2a95a158fae932f758d75a1178a40d4cc4804ff0 (diff) | |
parent | 1a457753cfad05989574c671a221ffce2d5df703 (diff) | |
download | binutils-users/pmuldoon/c++compile.zip binutils-users/pmuldoon/c++compile.tar.gz binutils-users/pmuldoon/c++compile.tar.bz2 |
Update w/HEADusers/pmuldoon/c++compile
Problems:
gdb/compile/compile.c
gdb/cp-support.c
gdb/cp-support.h
gdb/gdbtypes.h
gdb/language.c
gdb/linespec.c
Diffstat (limited to 'elfcpp')
-rw-r--r-- | elfcpp/ChangeLog | 12 | ||||
-rw-r--r-- | elfcpp/dwarf.h | 11 | ||||
-rw-r--r-- | elfcpp/elfcpp.h | 17 |
3 files changed, 40 insertions, 0 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog index 3ce59f3..f669248 100644 --- a/elfcpp/ChangeLog +++ b/elfcpp/ChangeLog @@ -1,3 +1,15 @@ +2017-07-28 H.J. Lu <hongjiu.lu@intel.com> + + PR gold/21857 + * elfcpp.h (Chdr_write): Add put_ch_reserved. + (Chdr_write<64, true>::put_ch_reserved): New. + (Chdr_write<64, false>::put_ch_reserved): Likewise. + +2017-07-03 Alan Modra <amodra@gmail.com> + + * dwarf.h (DW_FIRST_IDX, DW_IDX, DW_IDX_DUP, DW_END_IDX): Define, + and undefine after using. + 2017-06-21 Alan Modra <amodra@gmail.com> * elfcpp.h (DT_PPC64_OPT): Define. diff --git a/elfcpp/dwarf.h b/elfcpp/dwarf.h index 364b774..e5053c4 100644 --- a/elfcpp/dwarf.h +++ b/elfcpp/dwarf.h @@ -74,6 +74,12 @@ namespace elfcpp #define DW_CFA(name, value) , name = value #define DW_END_CFA }; +#define DW_FIRST_IDX(name, value) enum dwarf_name_index_attribute { \ + name = value +#define DW_IDX(name, value) , name = value +#define DW_IDX_DUP(name, value) , name = value +#define DW_END_IDX }; + #include "dwarf2.def" #undef DW_FIRST_TAG @@ -104,6 +110,11 @@ namespace elfcpp #undef DW_CFA #undef DW_END_CFA +#undef DW_FIRST_IDX +#undef DW_IDX +#undef DW_IDX_DUP +#undef DW_END_IDX + // Frame unwind information. enum DW_EH_PE diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h index a57f547..cccec4c 100644 --- a/elfcpp/elfcpp.h +++ b/elfcpp/elfcpp.h @@ -1351,10 +1351,27 @@ class Chdr_write put_ch_addralign(typename Elf_types<size>::Elf_WXword v) { this->p_->ch_addralign = Convert<size, big_endian>::convert_host(v); } + void + put_ch_reserved(Elf_Word); + private: internal::Chdr_data<size>* p_; }; +template<> +inline void +elfcpp::Chdr_write<64, true>::put_ch_reserved(Elf_Word v) +{ + this->p_->ch_reserved = v; +} + +template<> +inline void +elfcpp::Chdr_write<64, false>::put_ch_reserved(Elf_Word v) +{ + this->p_->ch_reserved = v; +} + // Accessor class for an ELF segment header. template<int size, bool big_endian> |