mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
tile: support stackguard-macros.h header
This commit is contained in:
parent
3c19868059
commit
9b7108251c
@ -1,3 +1,8 @@
|
||||
2012-05-12 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
* sysdeps/tile/stackguard-macros.h: New file.
|
||||
* sysdeps/tile/elf/stackguard-macros.h: New stub include file.
|
||||
|
||||
2012-05-12 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
* sysdeps/tile/Makefile (ELF_MACHINE_PLTREL_OVERLAP):
|
||||
|
3
sysdeps/tile/elf/stackguard-macros.h
Normal file
3
sysdeps/tile/elf/stackguard-macros.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* Tests in nptl/ look for <elf/stackguard-macros.h> while tests
|
||||
in elf/ look for <stackguard-macros.h>. Provide both. */
|
||||
#include "../stackguard-macros.h"
|
7
sysdeps/tile/stackguard-macros.h
Normal file
7
sysdeps/tile/stackguard-macros.h
Normal file
@ -0,0 +1,7 @@
|
||||
#ifdef __tilegx__
|
||||
# define STACK_CHK_GUARD \
|
||||
({ uintptr_t x; asm ("addi %0, tp, -16; ld %0, %0" : "=r" (x)); x; })
|
||||
#else
|
||||
# define STACK_CHK_GUARD \
|
||||
({ uintptr_t x; asm ("addi %0, tp, -8; lw %0, %0" : "=r" (x)); x; })
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user