Add linker option to include local symbols in the linker map.
[binutils-gdb.git] / ld / ChangeLog
index dcdf27cf4237e275726ab31f3e8828b79752adf9..dac58cd575b5d35a04c8365120b82a9923fa749a 100644 (file)
@@ -1,3 +1,27 @@
+2023-05-10  Nick Clifton  <nickc@redhat.com>
+
+       PR 16566
+       * ldlang.c (ld_is_local_symbol): New function.
+       (print_input_section): Add code to display local symbols in the
+       section.
+       * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
+       OPTION_PRINT_MAP_LOCALS.
+       * lexsup.c (ld_options[]): Add entries for --print-map-locals
+       and --no-print-map-locals.
+       * NEWS: Mention the new feature.
+       * ld.h (struct ld_config_type): Add print_map_locals field.
+       * ld.texi: Document the new command line option.
+       * testsuite/ld-scripts/sizeof.s: Add a local symbol.
+       * testsuite/ld-scripts/map-locals.d: New test control file.
+       * testsuite/ld-scripts/map-address.exp: Run the new test.
+
+2023-05-04  Nick Clifton  <nickc@redhat.com>
+
+       PR 30300
+       * emultempl/pep.em (set_entry_point): Add an undefined reference
+       to the entry point if it has been constructed heuristically.
+       * emultempl/pe.em (set_entry_point): Likewise.
+
 2023-05-04  Dimitar Dimitrov  <dimitar@dinux.eu>
 
        * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable