This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] i386: Use "movl main@GOT(%ebx), %eax" in start.S


* 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]