[Bug 207631] rtld requires the first PT_LOAD segment to be .text and is incompatible with output produced by lld

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 2 16:37:17 UTC 2016


--- Comment #5 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kib
Date: Wed Mar  2 16:36:25 UTC 2016
New revision: 296319
URL: https://svnweb.freebsd.org/changeset/base/296319

  Fix handling of DT_TEXTREL for an object with more than one read-only
  segment.  According to gABI spec, presence of the tag indicates that
  dynamic linker must be prepared to handle relocations against any
  read-only segment, not only the segment which we, somewhat arbitrary,
  declared the text.

  For each read-only segment, add write permission before relocs are
  processed, and return to the mapping mode requested by the phdr, after
  relocs are done.

  Reported, tested, and reviewed by:    emaste
  PR:   207631
  Sponsored by: The FreeBSD Foundation
  MFC after:    2 weeks


You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list