00db10
commit 2969121014b150036551c93a09da7686ffcac817
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Sun Feb 17 21:57:26 2013 +0000
00db10
00db10
    Remove bounded-pointers handling from x86_64 assembly sources.
00db10
00db10
Conflicts:
00db10
	sysdeps/x86_64/bp-asm.h
00db10
	  (Copyright header change, file removed manually.)
00db10
	sysdeps/x86_64/strcmp.S
00db10
	  (Context change due to earlier IS_IN backport.)
00db10
00db10
diff --git a/sysdeps/unix/sysv/linux/x86_64/clone.S b/sysdeps/unix/sysv/linux/x86_64/clone.S
00db10
index 53f9fbd782848988..9a88bbc94e3f14e9 100644
00db10
--- a/sysdeps/unix/sysv/linux/x86_64/clone.S
00db10
+++ b/sysdeps/unix/sysv/linux/x86_64/clone.S
00db10
@@ -22,8 +22,6 @@
00db10
 #define _ERRNO_H	1
00db10
 #include <bits/errno.h>
00db10
 #include <asm-syntax.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 #define CLONE_VM	0x00000100
00db10
 #define CLONE_THREAD	0x00010000
00db10
@@ -52,7 +50,7 @@
00db10
 
00db10
 
00db10
         .text
00db10
-ENTRY (BP_SYM (__clone))
00db10
+ENTRY (__clone)
00db10
 	/* Sanity check arguments.  */
00db10
 	movq	$-EINVAL,%rax
00db10
 	testq	%rdi,%rdi		/* no NULL function pointers */
00db10
@@ -117,6 +115,6 @@ L(thread_start):
00db10
 	cfi_endproc;
00db10
 
00db10
 	cfi_startproc;
00db10
-PSEUDO_END (BP_SYM (__clone))
00db10
+PSEUDO_END (__clone)
00db10
 
00db10
-weak_alias (BP_SYM (__clone), BP_SYM (clone))
00db10
+weak_alias (__clone, clone)
00db10
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
00db10
index 3e91c38dcf83bd8b..4b5105dbfde763d2 100644
00db10
--- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h
00db10
+++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
00db10
@@ -20,8 +20,6 @@
00db10
 
00db10
 /* There is some commonality.  */
00db10
 #include <sysdeps/unix/x86_64/sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 #include <tls.h>
00db10
 
00db10
 #if IS_IN (rtld)
00db10
diff --git a/sysdeps/unix/x86_64/sysdep.S b/sysdeps/unix/x86_64/sysdep.S
00db10
index db13ac49d7e19f4e..f8f66ed03ef5fb0d 100644
00db10
--- a/sysdeps/unix/x86_64/sysdep.S
00db10
+++ b/sysdeps/unix/x86_64/sysdep.S
00db10
@@ -18,8 +18,6 @@
00db10
 #include <sysdep.h>
00db10
 #define _ERRNO_H
00db10
 #include <bits/errno.h>
00db10
-#include <bp-asm.h>
00db10
-#include <bp-sym.h>
00db10
 #include <tls.h>
00db10
 
00db10
 #if IS_IN (rtld)
00db10
diff --git a/sysdeps/x86_64/bp-asm.h b/sysdeps/x86_64/bp-asm.h
00db10
deleted file mode 100644
00db10
index 355ec8f634bc8e8e..0000000000000000
00db10
--- a/sysdeps/x86_64/bp-asm.h
00db10
+++ /dev/null
00db10
@@ -1,140 +0,0 @@
00db10
-/* Bounded-pointer definitions for x86-64 assembler.
00db10
-   Copyright (C) 2001 Free Software Foundation, Inc.
00db10
-
00db10
-   The GNU C Library is free software; you can redistribute it and/or
00db10
-   modify it under the terms of the GNU Lesser General Public
00db10
-   License as published by the Free Software Foundation; either
00db10
-   version 2.1 of the License, or (at your option) any later version.
00db10
-
00db10
-   The GNU C Library is distributed in the hope that it will be useful,
00db10
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
00db10
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00db10
-   Lesser General Public License for more details.
00db10
-
00db10
-   You should have received a copy of the GNU Lesser General Public
00db10
-   License along with the GNU C Library; if not, see
00db10
-   <http://www.gnu.org/licenses/>.  */
00db10
-
00db10
-#ifndef _bp_asm_h_
00db10
-# define _bp_asm_h_ 1
00db10
-
00db10
-# if __ASSEMBLER__
00db10
-
00db10
-#  if __BOUNDED_POINTERS__
00db10
-
00db10
-/* Bounded pointers occupy three words.  */
00db10
-#   define PTR_SIZE 24
00db10
-/* Bounded pointer return values are passed back through a hidden
00db10
-   argument that points to caller-allocate space.  The hidden arg
00db10
-   occupies one word on the stack.  */
00db10
-#   define RTN_SIZE 6
00db10
-/* Although the caller pushes the hidden arg, the callee is
00db10
-   responsible for popping it.  */
00db10
-#   define RET_PTR ret $RTN_SIZE
00db10
-/* Maintain frame pointer chain in leaf assembler functions for the benefit
00db10
-   of debugging stack traces when bounds violations occur.  */
00db10
-#   define ENTER pushq %rbp; movq %rsp, %rbp
00db10
-#   define LEAVE movq %rbp, %rsp; popq %rbp
00db10
-/* Stack space overhead of procedure-call linkage: return address and
00db10
-   frame pointer.  */
00db10
-#   define LINKAGE 16
00db10
-/* Stack offset of return address after calling ENTER.  */
00db10
-#   define PCOFF 8
00db10
-
00db10
-/* Int 5 is the "bound range" exception also raised by the "bound"
00db10
-   instruction.  */
00db10
-#   define BOUNDS_VIOLATED int $5
00db10
-
00db10
-#   define CHECK_BOUNDS_LOW(VAL_REG, BP_MEM)	\
00db10
-	cmpq 8+BP_MEM, VAL_REG;			\
00db10
-	jae 0f; /* continue if value >= low */	\
00db10
-	BOUNDS_VIOLATED;			\
00db10
-    0:
00db10
-
00db10
-#   define CHECK_BOUNDS_HIGH(VAL_REG, BP_MEM, Jcc)	\
00db10
-	cmpq 16+BP_MEM, VAL_REG;			\
00db10
-	Jcc 0f; /* continue if value < high */		\
00db10
-	BOUNDS_VIOLATED;				\
00db10
-    0:
00db10
-
00db10
-#   define CHECK_BOUNDS_BOTH(VAL_REG, BP_MEM)	\
00db10
-	cmpq 8+BP_MEM, VAL_REG;			\
00db10
-	jb 1f; /* die if value < low */		\
00db10
-	cmpq 16+BP_MEM, VAL_REG;		\
00db10
-	jb 0f; /* continue if value < high */	\
00db10
-    1:	BOUNDS_VIOLATED;			\
00db10
-    0:
00db10
-
00db10
-#   define CHECK_BOUNDS_BOTH_WIDE(VAL_REG, BP_MEM, LENGTH)	\
00db10
-	CHECK_BOUNDS_LOW(VAL_REG, BP_MEM);			\
00db10
-	addl LENGTH, VAL_REG;					\
00db10
-	cmpq 16+BP_MEM, VAL_REG;					\
00db10
-	jbe 0f; /* continue if value <= high */			\
00db10
-	BOUNDS_VIOLATED;					\
00db10
-    0:	subq LENGTH, VAL_REG /* restore value */
00db10
-
00db10
-/* Take bounds from BP_MEM and affix them to the pointer
00db10
-   value in %rax, stuffing all into memory at RTN(%esp).
00db10
-   Use %rdx as a scratch register.  */
00db10
-
00db10
-#   define RETURN_BOUNDED_POINTER(BP_MEM)	\
00db10
-	movq RTN(%rsp), %rdx;			\
00db10
-	movq %rax, 0(%rdx);			\
00db10
-	movq 8+BP_MEM, %rax;			\
00db10
-	movq %rax, 4(%rdx);			\
00db10
-	movq 16+BP_MEM, %rax;			\
00db10
-	movq %rax, 8(%rdx)
00db10
-
00db10
-#   define RETURN_NULL_BOUNDED_POINTER		\
00db10
-	movl RTN(%rsp), %rdx;			\
00db10
-	movl %rax, 0(%rdx);			\
00db10
-	movl %rax, 4(%rdx);			\
00db10
-	movl %rax, 8(%rdx)
00db10
-
00db10
-/* The caller of __errno_location is responsible for allocating space
00db10
-   for the three-word BP return-value and passing pushing its address
00db10
-   as an implicit first argument.  */
00db10
-#   define PUSH_ERRNO_LOCATION_RETURN		\
00db10
-	subl $16, %esp;				\
00db10
-	subl $8, %esp;				\
00db10
-	pushq %rsp
00db10
-
00db10
-/* __errno_location is responsible for popping the implicit first
00db10
-   argument, but we must pop the space for the BP itself.  We also
00db10
-   dereference the return value in order to dig out the pointer value.  */
00db10
-#   define POP_ERRNO_LOCATION_RETURN		\
00db10
-	popq %rax;				\
00db10
-	addq $16, %rsp
00db10
-
00db10
-#  else /* !__BOUNDED_POINTERS__ */
00db10
-
00db10
-/* Unbounded pointers occupy one word.  */
00db10
-#   define PTR_SIZE 8
00db10
-/* Unbounded pointer return values are passed back in the register %rax.  */
00db10
-#   define RTN_SIZE 0
00db10
-/* Use simple return instruction for unbounded pointer values.  */
00db10
-#   define RET_PTR ret
00db10
-/* Don't maintain frame pointer chain for leaf assembler functions.  */
00db10
-#   define ENTER
00db10
-#   define LEAVE
00db10
-/* Stack space overhead of procedure-call linkage: return address only.  */
00db10
-#   define LINKAGE 8
00db10
-/* Stack offset of return address after calling ENTER.  */
00db10
-#   define PCOFF 0
00db10
-
00db10
-#   define CHECK_BOUNDS_LOW(VAL_REG, BP_MEM)
00db10
-#   define CHECK_BOUNDS_HIGH(VAL_REG, BP_MEM, Jcc)
00db10
-#   define CHECK_BOUNDS_BOTH(VAL_REG, BP_MEM)
00db10
-#   define CHECK_BOUNDS_BOTH_WIDE(VAL_REG, BP_MEM, LENGTH)
00db10
-#   define RETURN_BOUNDED_POINTER(BP_MEM)
00db10
-
00db10
-#   define RETURN_NULL_BOUNDED_POINTER
00db10
-
00db10
-#   define PUSH_ERRNO_LOCATION_RETURN
00db10
-#   define POP_ERRNO_LOCATION_RETURN
00db10
-
00db10
-#  endif /* !__BOUNDED_POINTERS__ */
00db10
-
00db10
-# endif /* __ASSEMBLER__ */
00db10
-
00db10
-#endif /* _bp_asm_h_ */
00db10
diff --git a/sysdeps/x86_64/bsd-_setjmp.S b/sysdeps/x86_64/bsd-_setjmp.S
00db10
index 434e342aec5699c7..5591dd67562506bb 100644
00db10
--- a/sysdeps/x86_64/bsd-_setjmp.S
00db10
+++ b/sysdeps/x86_64/bsd-_setjmp.S
00db10
@@ -25,16 +25,14 @@
00db10
 #define _ASM
00db10
 #define _SETJMP_H
00db10
 #include <bits/setjmp.h>
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
-ENTRY (BP_SYM (_setjmp))
00db10
+ENTRY (_setjmp)
00db10
 	/* Set up arguments, we only need to set the second arg.  */
00db10
 	xorl %esi, %esi
00db10
 #ifdef PIC
00db10
 	jmp HIDDEN_JUMPTARGET (__sigsetjmp)
00db10
 #else
00db10
-	jmp BP_SYM (__sigsetjmp)
00db10
+	jmp __sigsetjmp
00db10
 #endif
00db10
-END (BP_SYM (_setjmp))
00db10
+END (_setjmp)
00db10
 libc_hidden_def (_setjmp)
00db10
diff --git a/sysdeps/x86_64/bsd-setjmp.S b/sysdeps/x86_64/bsd-setjmp.S
00db10
index 17717f703b3aa360..87e8bc07495d68d1 100644
00db10
--- a/sysdeps/x86_64/bsd-setjmp.S
00db10
+++ b/sysdeps/x86_64/bsd-setjmp.S
00db10
@@ -25,15 +25,13 @@
00db10
 #define _ASM
00db10
 #define _SETJMP_H
00db10
 #include <bits/setjmp.h>
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
-ENTRY (BP_SYM (setjmp))
00db10
+ENTRY (setjmp)
00db10
 	/* Set up arguments, we only need to set the 2nd arg.  */
00db10
 	movl $1, %esi
00db10
 #ifdef	PIC
00db10
 	jmp HIDDEN_JUMPTARGET (__sigsetjmp)
00db10
 #else
00db10
-	jmp BP_SYM (__sigsetjmp)
00db10
+	jmp __sigsetjmp
00db10
 #endif
00db10
-END (BP_SYM (setjmp))
00db10
+END (setjmp)
00db10
diff --git a/sysdeps/x86_64/mempcpy.S b/sysdeps/x86_64/mempcpy.S
00db10
index 5cb256e65bdffd77..acee5e56b174c8bb 100644
00db10
--- a/sysdeps/x86_64/mempcpy.S
00db10
+++ b/sysdeps/x86_64/mempcpy.S
00db10
@@ -3,6 +3,6 @@
00db10
 #define __memcpy_chk __mempcpy_chk
00db10
 #include <sysdeps/x86_64/memcpy.S>
00db10
 
00db10
-libc_hidden_def (BP_SYM (__mempcpy))
00db10
-weak_alias (BP_SYM (__mempcpy), BP_SYM (mempcpy))
00db10
+libc_hidden_def (__mempcpy)
00db10
+weak_alias (__mempcpy, mempcpy)
00db10
 libc_hidden_builtin_def (mempcpy)
00db10
diff --git a/sysdeps/x86_64/rtld-strchr.S b/sysdeps/x86_64/rtld-strchr.S
00db10
index dcd26da84009c6f3..2148190dc1312411 100644
00db10
--- a/sysdeps/x86_64/rtld-strchr.S
00db10
+++ b/sysdeps/x86_64/rtld-strchr.S
00db10
@@ -19,12 +19,10 @@
00db10
 
00db10
 #include <sysdep.h>
00db10
 #include "asm-syntax.h"
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
 
00db10
 	.text
00db10
-ENTRY (BP_SYM (strchr))
00db10
+ENTRY (strchr)
00db10
 
00db10
 	/* Before we start with the main loop we process single bytes
00db10
 	   until the source pointer is aligned.  This has two reasons:
00db10
@@ -284,7 +282,7 @@ ENTRY (BP_SYM (strchr))
00db10
 6:
00db10
 	nop
00db10
 	retq
00db10
-END (BP_SYM (strchr))
00db10
+END (strchr)
00db10
 
00db10
-weak_alias (BP_SYM (strchr), BP_SYM (index))
00db10
+weak_alias (strchr, index)
00db10
 libc_hidden_builtin_def (strchr)
00db10
diff --git a/sysdeps/x86_64/rtld-strlen.S b/sysdeps/x86_64/rtld-strlen.S
00db10
index 7293f875513ce3e5..0d4f5b3c474b42a6 100644
00db10
--- a/sysdeps/x86_64/rtld-strlen.S
00db10
+++ b/sysdeps/x86_64/rtld-strlen.S
00db10
@@ -19,8 +19,6 @@
00db10
 
00db10
 #include <sysdep.h>
00db10
 #include "asm-syntax.h"
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
 
00db10
 	.text
00db10
diff --git a/sysdeps/x86_64/setjmp.S b/sysdeps/x86_64/setjmp.S
00db10
index dd87c484f9dac4ce..0d3865a7efd78ac4 100644
00db10
--- a/sysdeps/x86_64/setjmp.S
00db10
+++ b/sysdeps/x86_64/setjmp.S
00db10
@@ -61,10 +61,10 @@ ENTRY (__sigsetjmp)
00db10
 #else
00db10
 	/* Make a tail call to __sigjmp_save; it takes the same args.  */
00db10
 # ifdef	PIC
00db10
-	jmp C_SYMBOL_NAME (BP_SYM (__sigjmp_save))@PLT
00db10
+	jmp C_SYMBOL_NAME (__sigjmp_save)@PLT
00db10
 # else
00db10
-	jmp BP_SYM (__sigjmp_save)
00db10
+	jmp __sigjmp_save
00db10
 # endif
00db10
 #endif
00db10
-END (BP_SYM (__sigsetjmp))
00db10
+END (__sigsetjmp)
00db10
 hidden_def (__sigsetjmp)
00db10
diff --git a/sysdeps/x86_64/start.S b/sysdeps/x86_64/start.S
00db10
index e603463044eee26f..a288aa3265679fac 100644
00db10
--- a/sysdeps/x86_64/start.S
00db10
+++ b/sysdeps/x86_64/start.S
00db10
@@ -54,7 +54,6 @@
00db10
 */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include "bp-sym.h"
00db10
 
00db10
 	.text
00db10
 	.globl _start
00db10
@@ -106,21 +105,21 @@ _start:
00db10
 	mov __libc_csu_fini@GOTPCREL(%rip), %R8_LP
00db10
 	mov __libc_csu_init@GOTPCREL(%rip), %RCX_LP
00db10
 
00db10
-	mov BP_SYM (main)@GOTPCREL(%rip), %RDI_LP
00db10
+	mov main@GOTPCREL(%rip), %RDI_LP
00db10
 
00db10
 	/* Call the user's main function, and exit with its value.
00db10
 	   But let the libc call main.	  */
00db10
-	call BP_SYM (__libc_start_main)@PLT
00db10
+	call __libc_start_main@PLT
00db10
 #else
00db10
 	/* Pass address of our own entry points to .fini and .init.  */
00db10
 	mov $__libc_csu_fini, %R8_LP
00db10
 	mov $__libc_csu_init, %RCX_LP
00db10
 
00db10
-	mov $BP_SYM (main), %RDI_LP
00db10
+	mov $main, %RDI_LP
00db10
 
00db10
 	/* Call the user's main function, and exit with its value.
00db10
 	   But let the libc call main.	  */
00db10
-	call BP_SYM (__libc_start_main)
00db10
+	call __libc_start_main
00db10
 #endif
00db10
 
00db10
 	hlt			/* Crash if somehow `exit' does return.	 */
00db10
diff --git a/sysdeps/x86_64/strcat.S b/sysdeps/x86_64/strcat.S
00db10
index 535a18dd3f82cf8c..bd0ebda1ce806234 100644
00db10
--- a/sysdeps/x86_64/strcat.S
00db10
+++ b/sysdeps/x86_64/strcat.S
00db10
@@ -20,12 +20,10 @@
00db10
 
00db10
 #include <sysdep.h>
00db10
 #include "asm-syntax.h"
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
 
00db10
 	.text
00db10
-ENTRY (BP_SYM (strcat))
00db10
+ENTRY (strcat)
00db10
 	movq %rdi, %rcx		/* Dest. register. */
00db10
 	andl $7, %ecx		/* mask alignment bits */
00db10
 	movq %rdi, %rax		/* Duplicate destination pointer.  */
00db10
@@ -255,5 +253,5 @@ ENTRY (BP_SYM (strcat))
00db10
 24:
00db10
 	movq	%rdi, %rax	/* Source is return value.  */
00db10
 	retq
00db10
-END (BP_SYM (strcat))
00db10
+END (strcat)
00db10
 libc_hidden_builtin_def (strcat)
00db10
diff --git a/sysdeps/x86_64/strcmp.S b/sysdeps/x86_64/strcmp.S
00db10
index ac10cc70d10f84cf..6d5aa19f87afca00 100644
00db10
--- a/sysdeps/x86_64/strcmp.S
00db10
+++ b/sysdeps/x86_64/strcmp.S
00db10
@@ -22,8 +22,6 @@
00db10
 
00db10
 #include <sysdep.h>
00db10
 #include "asm-syntax.h"
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
 #undef UPDATE_STRNCMP_COUNTER
00db10
 
00db10
@@ -128,7 +126,7 @@ libc_hidden_def (__strncasecmp)
00db10
 	/* FALLTHROUGH to strncasecmp_l.  */
00db10
 #endif
00db10
 
00db10
-ENTRY (BP_SYM (STRCMP))
00db10
+ENTRY (STRCMP)
00db10
 #if !IS_IN (libc)
00db10
 /* Simple version since we can't use SSE registers in ld.so.  */
00db10
 L(oop):	movb	(%rdi), %al
00db10
@@ -146,7 +144,7 @@ L(neq):	movl	$1, %eax
00db10
 	movl	$-1, %ecx
00db10
 	cmovbl	%ecx, %eax
00db10
 	ret
00db10
-END (BP_SYM (STRCMP))
00db10
+END (STRCMP)
00db10
 #else	/* !IS_IN (libc) */
00db10
 # ifdef USE_AS_STRCASECMP_L
00db10
 	/* We have to fall back on the C implementation for locales
00db10
@@ -2282,7 +2280,7 @@ LABEL(Byte0):
00db10
 
00db10
 	sub	%ecx, %eax
00db10
 	ret
00db10
-END (BP_SYM (STRCMP))
00db10
+END (STRCMP)
00db10
 
00db10
 	.section .rodata,"a",@progbits
00db10
 	.p2align 3
00db10
diff --git a/sysdeps/x86_64/strcpy.S b/sysdeps/x86_64/strcpy.S
00db10
index 65216d26e1475489..5444658236bcb668 100644
00db10
--- a/sysdeps/x86_64/strcpy.S
00db10
+++ b/sysdeps/x86_64/strcpy.S
00db10
@@ -19,15 +19,13 @@
00db10
 
00db10
 #include <sysdep.h>
00db10
 #include "asm-syntax.h"
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
 #ifndef USE_AS_STPCPY
00db10
 # define STRCPY strcpy
00db10
 #endif
00db10
 
00db10
 	.text
00db10
-ENTRY (BP_SYM (STRCPY))
00db10
+ENTRY (STRCPY)
00db10
 	movq %rsi, %rcx		/* Source register. */
00db10
 	andl $7, %ecx		/* mask alignment bits */
00db10
 	movq %rdi, %rdx		/* Duplicate destination pointer.  */
00db10
@@ -152,7 +150,7 @@ ENTRY (BP_SYM (STRCPY))
00db10
 	movq	%rdi, %rax	/* Source is return value.  */
00db10
 #endif
00db10
 	retq
00db10
-END (BP_SYM (STRCPY))
00db10
+END (STRCPY)
00db10
 #ifndef USE_AS_STPCPY
00db10
 libc_hidden_builtin_def (strcpy)
00db10
 #endif
00db10
diff --git a/sysdeps/x86_64/strcpy_chk.S b/sysdeps/x86_64/strcpy_chk.S
00db10
index 1640e69235bf6808..ad8f594fa5b9f2db 100644
00db10
--- a/sysdeps/x86_64/strcpy_chk.S
00db10
+++ b/sysdeps/x86_64/strcpy_chk.S
00db10
@@ -20,8 +20,6 @@
00db10
 
00db10
 #include <sysdep.h>
00db10
 #include "asm-syntax.h"
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
 #ifndef USE_AS_STPCPY_CHK
00db10
 # define STRCPY_CHK __strcpy_chk
00db10
diff --git a/sysdeps/x86_64/strtok.S b/sysdeps/x86_64/strtok.S
00db10
index 4028a47f243d9a54..b221e4cd724f7234 100644
00db10
--- a/sysdeps/x86_64/strtok.S
00db10
+++ b/sysdeps/x86_64/strtok.S
00db10
@@ -21,8 +21,6 @@
00db10
 
00db10
 #include <sysdep.h>
00db10
 #include "asm-syntax.h"
00db10
-#include "bp-sym.h"
00db10
-#include "bp-asm.h"
00db10
 
00db10
 /* This file can be used for the strtok and strtok_r functions:
00db10
 
00db10
@@ -59,7 +57,7 @@ save_ptr:
00db10
 #endif
00db10
 
00db10
 	.text
00db10
-ENTRY (BP_SYM (FUNCTION))
00db10
+ENTRY (FUNCTION)
00db10
 	/* First we create a table with flags for all possible characters.
00db10
 	   For the ASCII (7bit/8bit) or ISO-8859-X character sets which are
00db10
 	   supported by the C string functions we have 256 characters.
00db10
@@ -207,4 +205,4 @@ L(returnNULL):
00db10
 	mov %RDX_LP, SAVE_PTR
00db10
 	jmp L(epilogue)
00db10
 
00db10
-END (BP_SYM (FUNCTION))
00db10
+END (FUNCTION)
00db10
diff --git a/sysdeps/x86_64/strtok_r.S b/sysdeps/x86_64/strtok_r.S
00db10
index 8ce0089c7b72390d..f0db78c67a8ef6a4 100644
00db10
--- a/sysdeps/x86_64/strtok_r.S
00db10
+++ b/sysdeps/x86_64/strtok_r.S
00db10
@@ -1,5 +1,5 @@
00db10
 #define FUNCTION __strtok_r
00db10
 #define USE_AS_STRTOK_R	1
00db10
 #include <sysdeps/x86_64/strtok.S>
00db10
-weak_alias (BP_SYM (__strtok_r), BP_SYM (strtok_r))
00db10
-strong_alias (BP_SYM (__strtok_r), BP_SYM (__GI___strtok_r))
00db10
+weak_alias (__strtok_r, strtok_r)
00db10
+strong_alias (__strtok_r, __GI___strtok_r)