[PATCH] Reduce the statically linked startup code [BZ #23323]

H.J. Lu hjl.tools@gmail.com
Wed Aug 8 15:10:00 GMT 2018


On Wed, Aug 8, 2018 at 7:48 AM, Florian Weimer <fweimer@redhat.com> wrote:
> This is the patch rebased for glibc 2.29.
>
> Should we make more far-reaching changes and remove the arguments which are
> now zero?
>

i386 and x86-64 parts look good, except for

+ /* These used to be the addresses of .fini and .init.  */
+ xor %R8_LP, %R8_LP
+ xor %RCX_LP, %RCX_LP

Please use

xorl %r8d, %r8d
xorl %ecx, %ecx

They will zero-extend to 64 bits.

Thanks.

-- 
H.J.



More information about the Libc-alpha mailing list