This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] i386: Use "movl main@GOT(%ebx), %eax" in start.S
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 03 Oct 2017 17:37:04 +0200
- Subject: Re: [PATCH] i386: Use "movl main@GOT(%ebx), %eax" in start.S
- Authentication-results: sourceware.org; auth=none
- References: <20171003141916.GA8915@gmail.com>
* H. J. Lu:
> Don't use "leal main@GOTOFF(%ebx), %eax" since main may be in a
> shared object. Linker will convert "movl main@GOT(%ebx), %eax"
> to "leal main@GOTOFF(%ebx), %eax" if main is defined locally.
>
> Any comments?
Would it be worthwhile to add a test for this which is not
architecture-specific?