From 2b2d74f4a135e69fa2e0b68dd273212a4db88f81 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Tue, 15 Dec 2020 14:37:22 -0800 Subject: Cosmetic improvements for OSABI access. Add accessor methods to elfcpp::Ehdr class for EI_OSABI and EI_ABIVERSION; use those to simplify initialization of Osabi class and eliminate the need to template the class. elfcpp/ * elfcpp.h (class Ehdr): Add get_ei_osabi and get_ei_abiversion methods. gold/ * dwp.cc (class Dwo_file): Use new Ehdr::get_ei_osabi and get_ei_abiversion methods. * incremental.cc (make_sized_incremental_binary): Likewise. * object.cc (Sized_relobj_file::Sized_relobj_file): Likewise. (make_elf_sized_object): Likewise. * object.h (class Osabi): Make the class untemplated. --- elfcpp/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'elfcpp/ChangeLog') diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog index 73432dad9b2..0ae886e1780 100644 --- a/elfcpp/ChangeLog +++ b/elfcpp/ChangeLog @@ -1,3 +1,7 @@ +2020-12-15 Cary Coutant + + * elfcpp.h (class Ehdr): Add get_ei_osabi and get_ei_abiversion methods. + 2020-12-15 Vivek Das Mohapatra * elfcpp.h (enum DT): New enum member DT_GNU_FLAGS_1. -- cgit v1.2.3-65-gdbad