diff options
author | ian <ian@FreeBSD.org> | 2015-02-13 00:49:47 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2015-02-13 00:49:47 +0000 |
commit | 9165bfa9f7a589040206c4416aee52fbe345b552 (patch) | |
tree | 8a4caeb03a675e17f6ee1a762a6160e0ae0baa0e /sys/arm/include/asm.h | |
parent | 04e6c1eb4c21ad8fe8bbe5c0fbc054d35264ddce (diff) | |
download | FreeBSD-src-9165bfa9f7a589040206c4416aee52fbe345b552.zip FreeBSD-src-9165bfa9f7a589040206c4416aee52fbe345b552.tar.gz |
MFC r276525, r276596:
Put in a workaround for bug 196407 (arm modules cause crashes & panics).
(Don't allow movw/movt insn in modules.)
Fix alignment directives in arm asm code after clang 3.5 import.
Diffstat (limited to 'sys/arm/include/asm.h')
-rw-r--r-- | sys/arm/include/asm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/include/asm.h b/sys/arm/include/asm.h index a182863..53453d9 100644 --- a/sys/arm/include/asm.h +++ b/sys/arm/include/asm.h @@ -46,7 +46,7 @@ #define _ASM_LABEL(x) x #ifndef _ALIGN_TEXT -# define _ALIGN_TEXT .align 0 +# define _ALIGN_TEXT .align 2 #endif #if defined(__ARM_EABI__) && !defined(_STANDALONE) @@ -129,11 +129,11 @@ pclabel: add got, got, pc #ifdef __thumb__ #define GOT_INITSYM(gotsym,pclabel) \ - .align 0; \ + .align 2; \ gotsym: .word _C_LABEL(_GLOBAL_OFFSET_TABLE_) - (pclabel+4) #else #define GOT_INITSYM(gotsym,pclabel) \ - .align 0; \ + .align 2; \ gotsym: .word _C_LABEL(_GLOBAL_OFFSET_TABLE_) - (pclabel+8) #endif |