delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/11/12/13:40:22

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=vmC42e6UefAXQmWxuoTLzymEVFB6H
r7FKS18mEfFfXCajpVPXMPTpmXa8V1hGilcL3NQcRF3rX0qJyWaMSJWgicP0x4bw
aLitngnj7ps1BN+4q8nlYHxIFazZ3x9vC45OQKQ0Jb1Xuwrx+ySz733IZ8zhOvHR
X+B03RIBe5c97g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=N0Nvj9sJgWEe5rH7GzTX+ZxAmeI=; b=vVL
fNpw3TFIiFENd0ElNx0t3wD4Y4ihPVWe54TIVqssut6kXo4ckmmr5t9LLFuEodoV
QOLOdWF7ki1NP9VxAGJg+/yEqz2QUdfkYWTExR6pQvP/mJkWxf2L/MciZwjtafdw
GeU3YwgENTGjTxhllyqGWDO8WNUce5SWN+3o+q9I=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=hair, madison, he's
X-HELO: mail-io1-f67.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+jcGmU6xNwbmH//f93Jp83uHlYhov7lf9bkmMw/d8Vs=; b=XtFRlFLB3EvFoss+ixWPqAenlGRlE9tdd/1KsiSR2tqUMsHo3CxB/c7cglNlksifzg D5QsKCpATkLTyGaBX4UhrfyqGDX2V+az6cCy1gqmcxlotiNGcmFfOiW5g1fGGyoKAbmS mPR6b/IKgLH3tzN7Z0HxkaOvs11BNwaIRRyCXwzlbctVhPA3Rs/n1TxA5BrH1vBZy1cA Md4eVRoWy64G6RVxtQ+Qqib9uX9GiBYiGHDX0TpurbWmasjNh255cFObYqFa/3EWCwOp ARQpYMhgSHRmF48cGMhhCMTTpAiQqhKcaEfVZk+HONEmH3SstbwDpF8rqjhNDU2dTT+Y +wMw==
MIME-Version: 1.0
From: "E. Madison Bray" <erik DOT m DOT bray AT gmail DOT com>
Date: Tue, 12 Nov 2019 19:39:20 +0100
Message-ID: <CAOTD34atnOEHHEBkyk5vjYBgk5kU4ftt+H8JYNya_9++eh7r_w@mail.gmail.com>
Subject: --enable-auto-image-base with argument on 64-bit
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

Hello,

Some years ago Christopher Faylor added a feature [1] to binutils so
that the --enable-auto-image-base argument to ld can take an optional
argument (specifying the minimum base address).

This was applied for 32-bit, but there is a separate template file for
64-bit [2] which (deceptively, despite the documentation, and some
hair loss ;) ignores this optional argument, which it turns out I
actually need for some reason.

I could submit a patch to binutils or Christopher can if he's reading
and feels like it.  I just wanted to point this out, since I actually
needed this feature and was very grateful to find it (even if broken).

In the meantime I'm working around this by re-implementing binutils'
compute_dll_image_base function and using the explicit --image-base
argument.

Thanks,
Madison


[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;f=ld/emultempl/pe.em;h=d0e6d77b3fb64561ca66535f8ed6ca523eac923e
[2] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=ld/emultempl/pep.em;h=dca36cc341aabfa2ec9db139b8ec94690165201a;hb=d0e6d77b3fb64561ca66535f8ed6ca523eac923e

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019