https://sourceware.org/bugzilla/show_bug.cgi?id=23658

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
gld${EMULATION_NAME}_place_orphan has

  else if ((flags & SEC_LOAD) != 0 
           && ((elfinput && sh_type == SHT_NOTE)
               || (!elfinput && CONST_STRNEQ (secname, ".note"))))
    place = &hold[orphan_interp];

linker script for -shared has

SECTIONS
{
  /* Read-only sections, merged into text segment: */
  . = SEGMENT_START("text-segment", 0) + SIZEOF_HEADERS;
  .note.gnu.build-id : { *(.note.gnu.build-id) }
  .hash           : { *(.hash) }
  .gnu.hash       : { *(.gnu.hash) }

There is no way to place a note section before .note.gnu.build-id in
output statements since lang_insert_orphan can only insert an output
statement after another output statement, not before another output
statement.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to