Displaying 20 results from an estimated 20 matches for "gnu_stack".
2017 Jun 22
2
lld extra program headers
...Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x00000000000000c0 0x00000000000000c0 R E 0x200000
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
Section to Segment mapping:
Segment Sections...
00 .text
01
# readelf -l test.gold
Elf file type is EXEC (Executable file)
Entry point 0x4000b0
Ther...
2014 May 02
4
[PATCH] tests: simple test for execstack supermin
...f scanelf --help >/dev/null 2>&1; then
+ echo "using scanelf"
+ scanelf -e ../src/supermin
+ test `scanelf -qe ../src/supermin | wc -l` -eq 0
+elif readelf --help >/dev/null 2>&1; then
+ echo "using readelf"
+ readelf -lW ../src/supermin | grep GNU_STACK
+ ! readelf -lW ../src/supermin | grep GNU_STACK | grep 'E ' >/dev/null 2>&1
+else
+ echo "$0: test skipped because none of the following tools is installed: scanelf, readelf"
+ exit 77
+fi
--
1.9.0
2016 Aug 12
2
How LLD should create segments when linkerscript is used ?
...331e30 RW 1000
DYNAMIC 0x0000000001012000 0xffffffff81013000 0xffffffff81013000
0x0000000000000080 0x0000000000000080 RW 8
GNU_RELRO 0x0000000001012000 0xffffffff81013000 0xffffffff81013000
0x0000000000000080 0x0000000000000080 R 1
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0
ld output of the same:
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Alig...
2014 Oct 22
0
[PATCH] tests/regressions: Remove executable stack test.
...# line
- $_ = <$output>;
- $offset = index($_, 'Flags ');
- $line = 2;
- push(@lines, $_);
- }
-
- die("Unrecognised header: ".join("\n", @lines)) if(-1 == $offset);
- last;
- }
-
- # Find the GNU_STACK entry
- while(<$output>) {
- next unless(/^\s*GNU_STACK\b/);
-
- # Skip over input lines according to the header
- for(my $i = 1; $i < $line; $i++) {
- $_ = <$output>;
- }
-
- my $flags = substr($_, $offset, 3);
-
- $flags =~ /^...
2014 Oct 05
0
[PATCH v5 5/7] tests/regressions: Remove executable stack test.
...# line
- $_ = <$output>;
- $offset = index ($_, 'Flags ');
- $line = 2;
- push (@lines, $_);
- }
-
- die "Unrecognised header: ".join("\n", @lines) if -1 == $offset;
- last;
- }
-
- # Find the GNU_STACK entry
- while (<$output>) {
- next unless /^\s*GNU_STACK\b/;
-
- # Skip over input lines according to the header
- for (my $i = 1; $i < $line; $i++) {
- $_ = <$output>;
- }
-
- my $flags = substr ($_, $offset, 3);
-
- $flags =~...
2015 Aug 06
0
[PATCH v4 05/17] tests/regressions: Remove executable stack test.
...# line
- $_ = <$output>;
- $offset = index ($_, 'Flags ');
- $line = 2;
- push (@lines, $_);
- }
-
- die "Unrecognised header: ".join("\n", @lines) if -1 == $offset;
- last;
- }
-
- # Find the GNU_STACK entry
- while (<$output>) {
- next unless /^\s*GNU_STACK\b/;
-
- # Skip over input lines according to the header
- for (my $i = 1; $i < $line; $i++) {
- $_ = <$output>;
- }
-
- my $flags = substr ($_, $offset, 3);
-
- $flags =~...
2009 Aug 05
2
[PATCH] Add a test for an executable stack in libguestfs.so
...nes. Look for a Flags field on the next line
+ $_ = <$output>;
+ $offset = index($_, 'Flags ');
+ $line = 2;
+ push(@lines, $_);
+ }
+
+ die("Unrecognised header: ".join("\n", @lines)) if(-1 == $offset);
+ last;
+}
+
+# Find the GNU_STACK entry
+while(<$output>) {
+ next unless(/^\s*GNU_STACK\b/);
+
+ # Skip over input lines according to the header
+ for(my $i = 1; $i < $line; $i++) {
+ $_ = <$output>;
+ }
+
+ my $flags = substr($_, $offset, 3);
+
+ $flags =~ /^[ R][ W]([ E])$/ or die("Un...
2017 Oct 09
4
Understanding of ldd header allocation
...0002670
There are 3 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x7ffff034 0x7ffff034 0x00060 0x00060 R 0x4
LOAD 0x000000 0x7ffff000 0x7ffff000 0x0a098 0x0a098 RWE 0x1000
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x0
Section to Segment mapping:
Segment Sections...
00
01 .text .rodata .data
02
From what I understand if a linker script is used and the headers fail to allocate, then they should not be present in the resulting binary. Ho...
2007 Feb 18
2
shared klibc broken on x86_64 with binutils >= 2.17.50.0.2
...gs Align
LOAD 0x0000000000000000 0x0000000000200000 0x0000000000200000
0x0000000000011a5e 0x0000000000011a5e R E 200000
LOAD 0x0000000000011a60 0x0000000000411a60 0x0000000000411a60
0x0000000000000100 0x0000000000004288 RW 200000
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RWE 8
Section to Segment mapping:
Segment Sections...
00 .text .rodata
01 .data .bss
02
The .text and .rodata sections are placed in a segment starti...
2020 Feb 06
4
Latest kernel reports "process '/bin/sh' started with executable stack"
With latest kernel (Linus tree as of 5.6 merge window), I get the
following warning in the kernel 'dmesg':
[ 5.746588] process '/bin/sh' started with executable stack
This comes from commit
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/exec.c?id=47a2ebb7f5053387f5753b524f4920b9b829f922
"execve: warn if process starts with executable
2010 Jul 14
3
sample sleep command killed
I re-wrote the compile script to build klibc (cleaning up how I do it,
and how to find the source tarballs). It seems to be compiling fine.
I tried several of the commands in usr/utils/static and most one.
However, the sleep command fails in a strange way (EINVAL on execve):
================================================================
faraday/phil /home/phil/klibc-project-0 581> strace
2007 Sep 23
9
Confused about start of day setup
Hi,
I hope I''m right here. If not then please point me in the right
direction.
My problem in short:
I have problems using (pinning, mmu_update) physical pages from
0x900000 to 0xB1000 usualy.
I''m writing my own little amd64 64bit toy kernel (based on Mini-OS as
starting point) for xen and I run into problems with the way the start
of day sets up the physical pages.
My kernel
2014 Oct 05
12
[PATCH v5 0/7] tests: Introduce test harness for running tests.
Since v4:
- More tests have been converted.
- Testing local guests fixed.
- Drop no-exec-stack test.
2014 Oct 23
10
[PATCH v6 00/10] tests: Introduce test harness for running tests.
For v6:
This is mainly just a rebase, but I have also added tests in the
ocaml/ language bindings directory, and for all the OCaml-written virt
tools.
Rich.
2014 Oct 24
10
[PATCH v7 00/10] tests: Introduce test harness for running tests.
v7:
The only changes since v6 are those suggested by Pino in the review
of v5.
2015 Jul 28
10
[PATCH 00/10] tests: Introduce test harness for running tests.
I should probably start by saying this patch series isn't ready for
review yet.
This patch series adds a test harness to libguestfs. It allows us to
run the tests outside the ordinary 'make check' path in the build
tree. In particular, you can use this to run tests when libguestfs
has been installed. 'make check' and the other 'make check-*' rules
still work.
The
2014 Oct 04
4
[PATCH v4 0/4] tests: Introduce test harness for running tests.
This converts more of the tests (basically everything under tests/) to
use the test harness, revealing some problems which have subsequently
been fixed.
Rich.
2015 Jul 31
14
[PATCH v2 00/14] tests: Introduce test harness for running tests.
This is a more complete patch to add the test harness.
The only parts missing now are the language bindings (except OCaml).
The language bindings need a bit more thought. At the moment most
language binding tests are done through some sort of shell script like
perl/run-perl-tests which either runs each test itself or uses some
language-specific machinary to run each test. The problem with that
2015 Aug 06
20
[PATCH v4 00/17] tests: Introduce test harness for running tests.
Since v3:
- A large number of fixes, especially for running the tests on
installed libguestfs.
- Fixed EXTRA_DIST rules throughout.
- Extra patch 17/17 which is a tidy-up of the generated XML
listing guests.
Rich.
2015 Aug 04
16
[PATCH v3 01/16] tests: Introduce test harness for running tests.
Since v2:
- Add perl tests.
- Reworked and fixed the tests for virt-builder.
- Some further minor bug fixes.