[Bug 44650] Multiple Blizzard games need dxgi and d3d11 dlls mapped without hole between two LOAD segments (Diablo III v2. 6. 1. 49286+, World of Warcraft, Overwatch)

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 3 14:12:50 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=44650

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #4 from Anastasius Focht <focht at gmx.net> ---
Hello Zebediah,

yeah my bad, not sure what happened. I thought that I had tested this with a
local patch on top of vanilla Wine.
The gap between '.eh_frame' and '.init_array' sections is nicely explained
here:

https://stackoverflow.com/questions/33944047/why-is-there-unused-empty-space-between-elf-sections

--- quote ---
You can consult the documentation for builtin functions for GNU ld linker
scripts at https://sourceware.org/binutils/docs/ld/Builtin-Functions.html. But
beware that DATA_SEGMENT_ALIGN documentation is incorrect, as reported by
Stephen Kell at binutils bug #19203: "DATA_SEGMENT_ALIGN documentation is not
consistent with behaviour", apparently since Jakub Jelinek's [PATCH] Fix
DATA_SEGMENT_ALIGN. DATA_SEGMENT_ALIGN itself was introduced at a binutils'
mailing list thread called [RFC PATCH] Smarter aligning of data segment.

Somehow, the following:

. = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT
(MAXPAGESIZE) - 1));
. = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));

causes a 1-page jump, which in your example would move you from 0x0804856c to
0x0804956c.

When the linker option -z relro is used, requesting relocations fixed up at
load time to be marked read-only, DATA_SEGMENT_RELRO_END causes the previous
DATA_SEGMENT_ALIGN to add enough padding to cause the sum of the two arguments
of DATA_SEGMENT_RELRO_END to be aligned to a new page. 
--- quote ---

https://sourceware.org/ml/binutils/2002-02/msg00265.html ("[RFC PATCH] Smarter
aligning of data segment")

Reopening.

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list