Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Mar 2016 16:37:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 207631] rtld requires the first PT_LOAD segment to be .text and is incompatible with output produced by lld
Message-ID:  <bug-207631-8-K452X19d7N@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207631-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207631-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207631

--- Comment #5 from commit-hook@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

Log:
  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

Changes:
  head/libexec/rtld-elf/map_object.c
  head/libexec/rtld-elf/rtld.c
  head/libexec/rtld-elf/rtld.h

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207631-8-K452X19d7N>