diff options
author | kib <kib@FreeBSD.org> | 2011-01-07 16:07:51 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-01-07 16:07:51 +0000 |
commit | 2d97afa68c3a44f4ef609f8fa3766fd4af44b6e3 (patch) | |
tree | ec2f92d23fef3f377348ea6eacad7625a1a8215d /lib/csu | |
parent | 964ca98f1436f3297827a84f81a2593afe031e0d (diff) | |
download | FreeBSD-src-2d97afa68c3a44f4ef609f8fa3766fd4af44b6e3.zip FreeBSD-src-2d97afa68c3a44f4ef609f8fa3766fd4af44b6e3.tar.gz |
Add section .note.GNU-stack for assembly files used by 386 and amd64.
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/amd64/crti.S | 2 | ||||
-rw-r--r-- | lib/csu/amd64/crtn.S | 2 | ||||
-rw-r--r-- | lib/csu/i386-elf/crt1_s.S | 2 | ||||
-rw-r--r-- | lib/csu/i386-elf/crti.S | 2 | ||||
-rw-r--r-- | lib/csu/i386-elf/crtn.S | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/lib/csu/amd64/crti.S b/lib/csu/amd64/crti.S index 37698ba..618dca1 100644 --- a/lib/csu/amd64/crti.S +++ b/lib/csu/amd64/crti.S @@ -39,3 +39,5 @@ _init: .type _fini,@function _fini: subq $8,%rsp + + .section .note.GNU-stack,"",%progbits diff --git a/lib/csu/amd64/crtn.S b/lib/csu/amd64/crtn.S index eb6d4df..c411f00 100644 --- a/lib/csu/amd64/crtn.S +++ b/lib/csu/amd64/crtn.S @@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$"); .section .fini,"ax",@progbits addq $8,%rsp ret + + .section .note.GNU-stack,"",%progbits diff --git a/lib/csu/i386-elf/crt1_s.S b/lib/csu/i386-elf/crt1_s.S index f8c1d73..d7ed0a2 100644 --- a/lib/csu/i386-elf/crt1_s.S +++ b/lib/csu/i386-elf/crt1_s.S @@ -49,3 +49,5 @@ _start: int3 .cfi_endproc .size _start, . - _start + + .section .note.GNU-stack,"",%progbits diff --git a/lib/csu/i386-elf/crti.S b/lib/csu/i386-elf/crti.S index 608dc21..77e4e77 100644 --- a/lib/csu/i386-elf/crti.S +++ b/lib/csu/i386-elf/crti.S @@ -39,3 +39,5 @@ _init: .type _fini,@function _fini: sub $12,%esp /* re-align stack pointer */ + + .section .note.GNU-stack,"",%progbits diff --git a/lib/csu/i386-elf/crtn.S b/lib/csu/i386-elf/crtn.S index 9ce5bec..0264e22 100644 --- a/lib/csu/i386-elf/crtn.S +++ b/lib/csu/i386-elf/crtn.S @@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$"); .section .fini,"ax",@progbits add $12,%esp ret + + .section .note.GNU-stack,"",%progbits |