place_orphan optimisations
[binutils-gdb.git] / ld / ChangeLog
index cb0e2573c7f97a1aba8bb3016147622f2118f9ce..9e8e0e5c18f45ed2cc2b9431995181f690a04d65 100644 (file)
@@ -1,3 +1,31 @@
+2000-04-25  Alan Modra  <alan@linuxcare.com.au>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
+       (output_rel_find): New function.
+       (hold_section, hold_use): Delete.
+       (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
+       hold_interp): Make local to place_orphan.
+       (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
+       rather than place_section to find possible previous use of orphan.
+       Similarly find the place-holder output sections.  Use returned
+       value from lang_enter_output_section_statement rather than calling
+       lang_output_section_statement_lookup.
+       * emultempl/armelf.em: Same here.
+       * emultempl/pe.em: Similar to above, but no need for output_rel_find.
+
+       * ldlang.c (lang_enter_output_section_statement): Return output
+       section statement.
+       * ldlang.h (lang_enter_output_section_statement): Change
+       declaration too.
+
+       * ldlang.h (lang_output_section_statement): Export it.
+       * ldlang.c (lang_output_section_statement): Ditto.
+
+2000-04-24  Nick Clifton  <nickc@cygnus.com>
+
+       * ld.texinfo (Output Section Data): Add note that section data
+       commands cannot appear outside of section directives.
+
 2000-04-2  Matthew Green  <mrg@cygnus.com>
 
        * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.