[PATCH v2 3/3] configure: replace -Ttext-segment -with --imgage-base
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Tue Dec 23 12:48:33 GMT 2025
On 17/12/25 20:20, H.J. Lu wrote:
>> -LIBC_CONFIG_VAR([pde-load-address], [$libc_cv_pde_load_address])
>> +LIBC_CONFIG_VAR([pde-load-address], [$libc_cv_test_pde_load_address])
>>
>> # Get the linker command-line option to load executable at a non-zero
>> # load address. This is only used by glibc tests to verify that PIE and
>> # static PIE with non-zero load address work correctly.
>> -LIBC_LINKER_FEATURE([-Ttext-segment=$libc_cv_pde_load_address],
>> - [-Wl,-Ttext-segment=$libc_cv_pde_load_address],
>> - [libc_cv_load_address_ldflag=-Wl,-Ttext-segment],
>> - [libc_cv_load_address_ldflag=])
>> -LIBC_CONFIG_VAR([load-address-ldflag], [$libc_cv_load_address_ldflag])
>> +LIBC_TEST_LINKER_FEATURE([--image-base=$libc_cv_test_pde_load_address],
>> + [-Wl,--image-base=$libc_cv_test_pde_load_address],
>> + [libc_cv_test_load_address_ldflag=-Wl,--image-base],
>> + [libc_cv_test_load_address_ldflag=])
>> +LIBC_CONFIG_VAR([load-address-ldflag], [$libc_cv_test_load_address_ldflag])
>
> Do all supported binutils have --image-base? If not, please try
> -Ttext-segment if
> --image-base isn't available.
>
That was I originally did on previous version [1], but Sam suggested to
just use --image-base since all current support bintuils supports it.
[1] https://sourceware.org/pipermail/libc-alpha/2025-December/173294.html
More information about the Libc-alpha
mailing list