about summary refs log tree commit diff
path: root/hurd/intr-rpc.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-15 14:04:59 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-15 14:08:56 -0700
commitce3e7f4136a9f5943328c74511542834ca05811b (patch)
tree1502ed6cc69fe4144f7d7f66adca964ca33439fe /hurd/intr-rpc.h
parent7e7b5de8ffc9ac8fda45b988cde5650004bdbca7 (diff)
downloadglibc-ce3e7f4136a9f5943328c74511542834ca05811b.tar.gz
glibc-ce3e7f4136a9f5943328c74511542834ca05811b.tar.xz
glibc-ce3e7f4136a9f5943328c74511542834ca05811b.zip
x86-64: Align L(SP_RANGE)/L(SP_INF_0) to 8 bytes [BZ #21955]
sysdeps/x86_64/fpu/e_expf.S has

        lea     L(SP_RANGE)(%rip), %rdx /* load over/underflow bound */
        cmpl    (%rdx,%rax,4), %ecx     /* |x|<under/overflow bound ? */
...
        /* Here if |x| is Inf */
        lea     L(SP_INF_0)(%rip), %rdx /* depending on sign of x: */
        movss   (%rdx,%rax,4), %xmm0    /* return zero or Inf */
        ret
...
         .section .rodata.cst8,"aM",@progbits,8
...
        .p2align 2
L(SP_RANGE): /* single precision overflow/underflow bounds */
        .long   0x42b17217      /* if x>this bound, then result overflows */
        .long   0x42cff1b4      /* if x<this bound, then result underflows */
        .type L(SP_RANGE), @object
        ASM_SIZE_DIRECTIVE(L(SP_RANGE))

        .p2align 2
L(SP_INF_0):
        .long   0x7f800000      /* single precision Inf */
        .long   0               /* single precision zero */
        .type L(SP_INF_0), @object
        ASM_SIZE_DIRECTIVE(L(SP_INF_0))

Since L(SP_RANGE) and L(SP_INF_0) are in .rodata.cst8 section, they must
be aligned to 8 bytes.

	[BZ #21955]
	* sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
	(L(SP_INF_0)): Likewise.

(cherry picked from commit f59f7adb4a00b7784cab1becdf257366104587b7)
Diffstat (limited to 'hurd/intr-rpc.h')
0 files changed, 0 insertions, 0 deletions