Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
8c27681
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
accounting
arch
build
cgroup
firewire
gpio
hv
iio
include
kvm
laptop
leds
lib
net
nfsd
objtool
Documentation
arch
.gitignore
Build
Makefile
arch.h
builtin-check.c
builtin-orc.c
builtin.h
cfi.h
check.c
check.h
elf.c
elf.h
objtool.c
orc.h
orc_dump.c
orc_gen.c
special.c
special.h
sync-check.sh
warn.h
pci
pcmcia
perf
power
scripts
spi
testing
thermal
time
usb
virtio
vm
Makefile
usr
virt
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Breadcrumbs
linux
/
tools
/
objtool
/
builtin-orc.c
Blame
Blame
Latest commit
History
History
68 lines (54 loc) · 1.66 KB
Breadcrumbs
linux
/
tools
/
objtool
/
builtin-orc.c
Top
File metadata and controls
Code
Blame
68 lines (54 loc) · 1.66 KB
Raw
/* * Copyright (C) 2017 Josh Poimboeuf <jpoimboe@redhat.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ /* * objtool orc: * * This command analyzes a .o file and adds .orc_unwind and .orc_unwind_ip * sections to it, which is used by the in-kernel ORC unwinder. * * This command is a superset of "objtool check". */ #include <string.h> #include "builtin.h" #include "check.h" static const char *orc_usage[] = { "objtool orc generate [<options>] file.o", "objtool orc dump file.o", NULL, }; int cmd_orc(int argc, const char **argv) { const char *objname; argc--; argv++; if (argc <= 0) usage_with_options(orc_usage, check_options); if (!strncmp(argv[0], "gen", 3)) { argc = parse_options(argc, argv, check_options, orc_usage, 0); if (argc != 1) usage_with_options(orc_usage, check_options); objname = argv[0]; return check(objname, true); } if (!strcmp(argv[0], "dump")) { if (argc != 2) usage_with_options(orc_usage, check_options); objname = argv[1]; return orc_dump(objname); } usage_with_options(orc_usage, check_options); return 0; }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
You can’t perform that action at this time.