bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23658] Improve PT_NOTE segment creation


From: hjl.tools at gmail dot com
Subject: [Bug ld/23658] Improve PT_NOTE segment creation
Date: Thu, 04 Oct 2018 15:42:25 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]