summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/gnustack.s
Commit message (Collapse)AuthorAgeFilesLines
* [lld] [ELF] Add '-z nognustack' opt to suppress emitting PT_GNU_STACKMichał Górny2019-10-291-0/+5
| | | | | | | | | Add a new '-z nognustack' option that suppresses emitting PT_GNU_STACK segment. This segment is not supported at all on NetBSD (stack is always non-executable), and the option is meant to be used to disable emitting it. Differential Revision: https://reviews.llvm.org/D56554
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-3/+3
| | | | | | | | | | | | options. NFC Also change some options that have different semantics (cause confusion) in llvm-readelf mode: -s => -S -t => --symbols -sd => --section-data llvm-svn: 359651
* Add -z {combreloc,copyreloc,noexecstack,lazy,relro,text}.Rui Ueyama2018-04-201-0/+5
| | | | | | Differential Revision: https://reviews.llvm.org/D45902 llvm-svn: 330482
* Always add PT_GNU_STACK.Rui Ueyama2017-02-231-18/+22
| | | | | | | If -z stack-size is given, we need to add PT_GNU_STACK even if -z execstack is not given. llvm-svn: 295945
* ELF: Omit PT_GNU_STACK segment if -z execstack is provided.Rui Ueyama2015-11-241-37/+21
| | | | | | | | | In the previous patch (r254003), I made the linker emit PT_GNU_STACK unconditionally. But sometimes you want to have a control over the presence of the segment. With this patch, you can omit the segment by passing -z execstack option. llvm-svn: 254039
* Revert "ELF: Make .note.GNU-stack more compatible with traditional linkers."Rui Ueyama2015-11-241-7/+18
| | | | | | | This reverts commit r253797 because it was based on a misunderstanding that lld wouldn't work on NetBSD without this change. llvm-svn: 254003
* ELF: Make .note.GNU-stack more compatible with traditional linkers.Rui Ueyama2015-11-211-18/+7
| | | | | | | | | | | | | With this patch, lld creates PT_GNU_STACK segments only when all input files have .note.GNU-stack sections. This is in line with other linkers with a minor difference (we don't care about .note.GNU-stack rwx bits as you can always remove .note.GNU-stack sections instead of setting x bit.) At least, NetBSD loader does not understand PT_GNU_STACK segments and reject any executables that have the section. This patch makes lld compatible with such operating systems. llvm-svn: 253797
* Rename ld.lld2 to ld.lld since it is the default.Rafael Espindola2015-11-181-2/+2
| | | | llvm-svn: 253437
* Rename test/elf2 to test/ELF.Rafael Espindola2015-11-171-0/+46
llvm-svn: 253313
OpenPOWER on IntegriCloud