Re: [PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-12-16 Thread Fangrui Song
On 2019-12-09, Fangrui Song wrote: On 2019-12-01, Fangrui Song wrote: Thanks for reviewing this patch! On 2019-12-01, Richard Henderson wrote: On 11/27/19 6:36 PM, Fangrui Song wrote: On 2019-11-20, Fangrui Song wrote: On 2019-11-15, Fangrui Song wrote: For lld, --image-base is the preferr

Re: [PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-12-09 Thread Fangrui Song
On 2019-12-01, Fangrui Song wrote: Thanks for reviewing this patch! On 2019-12-01, Richard Henderson wrote: On 11/27/19 6:36 PM, Fangrui Song wrote: On 2019-11-20, Fangrui Song wrote: On 2019-11-15, Fangrui Song wrote: For lld, --image-base is the preferred way to set the base address. lld

Re: [PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-12-01 Thread Fangrui Song
Thanks for reviewing this patch! On 2019-12-01, Richard Henderson wrote: On 11/27/19 6:36 PM, Fangrui Song wrote: On 2019-11-20, Fangrui Song wrote: On 2019-11-15, Fangrui Song wrote: For lld, --image-base is the preferred way to set the base address. lld does not actually implement -Ttext-

Re: [PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-12-01 Thread Richard Henderson
On 11/27/19 6:36 PM, Fangrui Song wrote: > On 2019-11-20, Fangrui Song wrote: >> On 2019-11-15, Fangrui Song wrote: >>> For lld, --image-base is the preferred way to set the base address. >>> lld does not actually implement -Ttext-segment, but treats it as an alias >>> for >>> -Ttext. -Ttext-segme

Re: [PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-11-27 Thread Alex Bennée
Fangrui Song writes: > For lld, --image-base is the preferred way to set the base address. > lld does not actually implement -Ttext-segment, but treats it as an alias for > -Ttext. -Ttext-segment=0x6000 combined with --no-rosegment can > create a 1.6GB executable. > > Fix the problem by usi

Re: [PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-11-27 Thread Fangrui Song
On 2019-11-20, Fangrui Song wrote: On 2019-11-15, Fangrui Song wrote: For lld, --image-base is the preferred way to set the base address. lld does not actually implement -Ttext-segment, but treats it as an alias for -Ttext. -Ttext-segment=0x6000 combined with --no-rosegment can create a 1.6G

Re: [PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-11-20 Thread Fangrui Song
On 2019-11-15, Fangrui Song wrote: For lld, --image-base is the preferred way to set the base address. lld does not actually implement -Ttext-segment, but treats it as an alias for -Ttext. -Ttext-segment=0x6000 combined with --no-rosegment can create a 1.6GB executable. Fix the problem by us

[PATCH] configure: Use lld --image-base for --disable-pie user mode binaries

2019-11-15 Thread Fangrui Song
For lld, --image-base is the preferred way to set the base address. lld does not actually implement -Ttext-segment, but treats it as an alias for -Ttext. -Ttext-segment=0x6000 combined with --no-rosegment can create a 1.6GB executable. Fix the problem by using --image-base for lld. GNU ld and