winegcc: Add support for -Ttext-segment linker flag to set image base of a dll. (try 2)

Alexandre Julliard julliard at winehq.org
Thu Mar 14 04:32:38 CDT 2013


Tijl Coosemans <tijl at coosemans.org> writes:

> Loading a library at a specific address not only depends on the
> compile-time linker, but also on the run-time loader, so it's
> probably best to implement -image-base only on PLATFORM_* where
> the loader supports it. Since a target platform would then have
> to choose to use PLATFORM_ELF explicitly I think it's reasonable
> for PLATFORM_ELF to have a dependency on binutils>=2.20 (or
> compatible) rather than a run-time test for -Ttext-segment
> support.

The gold linker doesn't support it even in recent binutils versions, and
some systems use that by default.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list