diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-02-28 19:33:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-02-28 19:33:17 +0000 |
commit | f8fbb4c45171d24f2e7e2298e555bbc7fe025a7e (patch) | |
tree | 77867fd79dc27beeebee0827a24780bb6135b91b /sysdeps | |
parent | 49ad572a70b8aeb91e57483a11dd1b77e31c4468 (diff) | |
download | glibc-f8fbb4c45171d24f2e7e2298e555bbc7fe025a7e.zip glibc-f8fbb4c45171d24f2e7e2298e555bbc7fe025a7e.tar.gz glibc-f8fbb4c45171d24f2e7e2298e555bbc7fe025a7e.tar.bz2 |
Update.
2004-02-28 Ulrich Drepper <drepper@redhat.com>
* sysdeps/i386/i686/memcmp.S: Move table to .rodata. Patch by HJ Lu.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/i386/i686/memcmp.S | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sysdeps/i386/i686/memcmp.S b/sysdeps/i386/i686/memcmp.S index 920ae72..f382e80 100644 --- a/sysdeps/i386/i686/memcmp.S +++ b/sysdeps/i386/i686/memcmp.S @@ -32,13 +32,13 @@ /* Load an entry in a jump table into EBX. TABLE is a jump table with relative offsets. INDEX is a register contains the index into the jump table. */ -#define LOAD_JUMP_TABLE_ENTRY(TABLE, INDEX) \ - /* We first load PC into EBX. */ \ - call __i686.get_pc_thunk.bx; \ - /* Get the address of the jump table. */ \ - addl $(TABLE - .), %ebx; \ - /* Get the entry and convert the relative offset to the \ - absolute address. */ \ +#define LOAD_JUMP_TABLE_ENTRY(TABLE, INDEX) \ + /* We first load PC into EBX. */ \ + call __i686.get_pc_thunk.bx; \ + /* Get the address of the jump table. */ \ + addl $(TABLE - .), %ebx; \ + /* Get the entry and convert the relative offset to the \ + absolute address. */ \ addl (%ebx,INDEX,4), %ebx #ifdef HAVE_HIDDEN @@ -351,6 +351,7 @@ L(set): popl %esi RETURN + .section .rodata ALIGN (2) L(table_32bytes) : .long L(0bytes) - . + 0x0 |