diff options
author | Cary Coutant <ccoutant@google.com> | 2014-07-02 16:12:51 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2014-09-02 15:44:58 -0700 |
commit | 54674d38930c7da1af518510fede6f700f5ca596 (patch) | |
tree | aef7ff0038d0040cafb00667066b48bc874b17bb /elfcpp/ChangeLog | |
parent | 9860cbcfb60bdae2f9800e6a6ea5f21ef1507d08 (diff) | |
download | binutils-54674d38930c7da1af518510fede6f700f5ca596.zip binutils-54674d38930c7da1af518510fede6f700f5ca596.tar.gz binutils-54674d38930c7da1af518510fede6f700f5ca596.tar.bz2 |
Make Elf_file::section_name() a const function, so that it can be used in
places where we have only a const Elf_file*.
elfcpp/
* elfcpp_file.h (Elf_file::shnum): New const function.
(Elf_file::shstrndx): New const function.
(Elf_file::large_shndx_offset): New const function.
(Elf_file::section_name): Add const attribute.
(Elf_file::section_header_offset): Likewise.
gold/
* dwp.cc (Sized_relobj_dwo::do_section_name): Add const attribute.
* dynobj.h (Sized_dynobj::do_section_name): Likewise.
* incremental.cc (Sized_relobj_incr::do_section_name): Likewise.
(Sized_incr_dynobj::do_section_name): Likewise.
* incremental.h (Sized_relobj_incr::do_section_name): Likewise.
(Sized_incr_dynobj::do_section_name): Likewise.
* object.h (Object::section_name): Likewise.
(Object::do_section_name): Likewise.
(Sized_relobj_file::do_section_name): Likewise.
* plugin.cc (Sized_pluginobj::do_section_name): Likewise.
* plugin.h (Sized_pluginobj::do_section_name): Likewise.
Diffstat (limited to 'elfcpp/ChangeLog')
-rw-r--r-- | elfcpp/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog index eafa252..b554287 100644 --- a/elfcpp/ChangeLog +++ b/elfcpp/ChangeLog @@ -1,3 +1,11 @@ +2014-09-02 Cary Coutant <ccoutant@google.com> + + * elfcpp_file.h (Elf_file::shnum): New const function. + (Elf_file::shstrndx): New const function. + (Elf_file::large_shndx_offset): New const function. + (Elf_file::section_name): Add const attribute. + (Elf_file::section_header_offset): Likewise. + 2014-08-08 Han Shen <shenhan@google.com> * aarch64.h (withdrawn): Replaced with R_AARCH64_withdrawn. |