From a8ecc9fe61d0fdb1f694c5f3fac910802468d43f Mon Sep 17 00:00:00 2001 From: Vladimir Radosavljevic Date: Mon, 20 Jun 2016 12:10:53 -0700 Subject: Add support for MIPS .rld_map section. Includes DT_MIPS_RLD_MAP and DT_MIPS_RLD_MAP_REL dynamic tags and __RLD_MAP symbol. 2016-06-20 Vladimir Radosavljevic elfcpp/ * elfcpp.h (DT_MIPS_RLD_MAP_REL): New enum constant. gold/ * mips.cc (Target_mips::Target_mips): Initialize rld_map_. (Target_mips::rld_map_): New data member. (Target_mips::do_finalize_sections): Add support for DT_MIPS_RLD_MAP and DT_MIPS_RLD_MAP_REL dynamic tags, .rld_map section, and __RLD_MAP symbol. (Target_mips::do_dynamic_tag_custom_value): Add support for DT_MIPS_RLD_MAP_REL dynamic tag. * output.cc (Output_data_dynamic::get_entry_offset): New method definition. * output.h (Output_data_dynamic::get_entry_offset): New method declaration. --- elfcpp/ChangeLog | 4 ++++ elfcpp/elfcpp.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'elfcpp') diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog index fa8594e..62e21b5 100644 --- a/elfcpp/ChangeLog +++ b/elfcpp/ChangeLog @@ -1,5 +1,9 @@ 2016-06-20 Vladimir Radosavljevic + * elfcpp.h (DT_MIPS_RLD_MAP_REL): New enum constant. + +2016-06-20 Vladimir Radosavljevic + * mips.h (R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3, R_MIPS_PC19_S2, R_MIPS_PCHI16, R_MIPS_PCLO16): New enums for Mips32r6 and Mips64r6 relocations. diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h index f39a135..7469bd8 100644 --- a/elfcpp/elfcpp.h +++ b/elfcpp/elfcpp.h @@ -868,6 +868,8 @@ enum DT DT_MIPS_PLTGOT = 0x70000032, // Points to the base of a writable PLT. DT_MIPS_RWPLT = 0x70000034, + // Relative offset of run time loader map, used for debugging. + DT_MIPS_RLD_MAP_REL = 0x70000035, DT_AUXILIARY = 0x7ffffffd, DT_USED = 0x7ffffffe, -- cgit v1.1