X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=ZNQwi9UeMCX7xiRgUKYgpgM/02GKoEJByYYD/K2KeWLWyQxIicRMv
	glZPfcshEW6nPlL1kCV5B5h7LTOsUuQiLWbyW4uj6iQRCvg263S4wKNxlzDcW7t8
	AbVkQO8N1Q8iqe0CsFN/s9j5yD3QQfkYLzlWaFUJ1tN7E5mtREPRoc=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=/zc4UcvoZKwC9MYibkDrO51xs5c=; b=eg5F4f+TkUa6kgEZFlFbK3tQXajS
	pYvwWVaVrqyueFTQgohIXNgywmiD1fWtbsluSNmsnMRm3OFUeSPvtJtZhzkjb8/T
	aTYVacxaVt/IYjzyuImsKM4dUcmfKx8xRIiQYGGTgGR0FAVs8FgfFWT51Yx02nQH
	TjCFgIvBZPTY+0Y=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=(unknown), xpdf, blocker, 0x100494523
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Mark Geisert <mark@maxrnd.com>
Subject: Re: Invalid relocation for xpdf
Date: Sun, 17 Apr 2016 04:46:29 +0000 (UTC)
Lines: 42
Message-ID: <loom.20160417T063426-640@post.gmane.org>
References: <1111438834.462634.961ea0e5-8785-4a9b-803a-599a405ed7c7.open-xchange@email.1und1.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Tobias Zawada writes:
> Hello all,
> first of all thanks for cygwin! It is very useful to me.
> 
> I get the runtime errors of the following kind for some time now:
> 
> Cygwin runtime failure: /usr/bin/xpdf.exe: Invalid relocation.  Offset
> 0x2f7fdbad9 at address 0x100494523 doesn't fit into 32 bits
> 
> Killing all cygwin processes and running rebaseall from dash does not 
help.
> 
> I've installed the source package for xpdf and compiled it. This 
version runs
> fine (from /usr/local/bin/xpdf). So I have a workaround and it is not 
a blocker
> for me. Thank you for looking at the problem though.

I've reproduced this.  The source code at XPDFTree.cc:218 compiles into 
a reference of XtInherit(), in the cygXt-6.dll.  Unfortunately the 
relocation needed to reach that library up where rebase puts it is too 
big to fit in the space the compiler/linker left for it.  You can solve 
this issue by rebasing cygXt-6.dll.  Here's what I did for example:

/usr/bin# rebase -i cygXt*
/usr/bin/cygXt-6.dll              base 0x0003ffa70000 size 0x00058000

/usr/bin# rebase --base=0x0ffa70000 cygXt-6.dll

/usr/bin# rebase -i cygXt*
/usr/bin/cygXt-6.dll              base 0x0000ffa70000 size 0x00058000

xpdf seems to run fine after that.  If you solve your issue this way, 
you'll have to repeat it after every run of setup*.exe because it'll 
rebase the library up out of range again automatically :-( .

I've run into the same issue with libgmp used by some other app.  I 
wonder why our toolchain generates relocation entries that cannot be 
resolved properly at runtime given the huge address space we use on 64-
bit Windows.

..mark


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

