On 08/11/2015 02:42 AM, Damjan Jovanovic wrote:
If you read the 2 "Add support for -Ttext-segment linker flag to set image base of a dll" threads on wine-patches/wine-devel from March 2013, you'll see prelink's functionality is fully achievable without the use of prelink, just by using newer versions of ld and its -Ttext-segment option. Read those threads carefully though, as Alexandre found issues and wanted it implemented a certain way.
Thanks for the pointer. Using the linker makes it very simple.
You referenced the second patch, which does not look very clean. The first patch[1] looks better (IMHO) and just needs to be adjusted to hide the warning about missing prelink in configure.ac if linker support is present. Alexandre, did you have any concerns over the first patch?
[1] https://www.winehq.org/pipermail/wine-patches/2013-February/122534.html