mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
coredump: move elf parsing utilities to src/shared/elf-util
This commit is contained in:
parent
f05b5cddfb
commit
ea680f0524
@ -2822,7 +2822,6 @@ if conf.get('ENABLE_COREDUMP') == 1
|
||||
link_with : [libshared],
|
||||
dependencies : [threads,
|
||||
libacl,
|
||||
libdw,
|
||||
libxz,
|
||||
liblz4,
|
||||
libzstd],
|
||||
|
@ -7,11 +7,6 @@
|
||||
#include <sys/xattr.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if HAVE_ELFUTILS
|
||||
#include <dwarf.h>
|
||||
#include <elfutils/libdwfl.h>
|
||||
#endif
|
||||
|
||||
#include "sd-daemon.h"
|
||||
#include "sd-journal.h"
|
||||
#include "sd-login.h"
|
||||
@ -27,6 +22,7 @@
|
||||
#include "copy.h"
|
||||
#include "coredump-vacuum.h"
|
||||
#include "dirent-util.h"
|
||||
#include "elf-util.h"
|
||||
#include "escape.h"
|
||||
#include "fd-util.h"
|
||||
#include "fileio.h"
|
||||
@ -43,7 +39,6 @@
|
||||
#include "signal-util.h"
|
||||
#include "socket-util.h"
|
||||
#include "special.h"
|
||||
#include "stacktrace.h"
|
||||
#include "stat-util.h"
|
||||
#include "string-table.h"
|
||||
#include "string-util.h"
|
||||
|
@ -6,12 +6,6 @@ systemd_coredump_sources = files('''
|
||||
coredump-vacuum.h
|
||||
'''.split())
|
||||
|
||||
if conf.get('HAVE_ELFUTILS') == 1
|
||||
systemd_coredump_sources += files(
|
||||
'stacktrace.c',
|
||||
'stacktrace.h')
|
||||
endif
|
||||
|
||||
coredumpctl_sources = files('coredumpctl.c')
|
||||
|
||||
if conf.get('ENABLE_COREDUMP') == 1 and install_sysconfdir_samples
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "elf-util.h"
|
||||
#include "errno-util.h"
|
||||
#include "fileio.h"
|
||||
#include "fd-util.h"
|
||||
@ -19,7 +20,6 @@
|
||||
#include "macro.h"
|
||||
#include "process-util.h"
|
||||
#include "rlimit-util.h"
|
||||
#include "stacktrace.h"
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
|
@ -388,6 +388,12 @@ if conf.get('ENABLE_NSCD') == 1
|
||||
shared_sources += files('nscd-flush.c')
|
||||
endif
|
||||
|
||||
if conf.get('HAVE_ELFUTILS') == 1
|
||||
shared_sources += files(
|
||||
'elf-util.c',
|
||||
'elf-util.h')
|
||||
endif
|
||||
|
||||
generate_ip_protocol_list = find_program('generate-ip-protocol-list.sh')
|
||||
ip_protocol_list_txt = custom_target(
|
||||
'ip-protocol-list.txt',
|
||||
@ -436,6 +442,7 @@ libshared_deps = [threads,
|
||||
libcap,
|
||||
libcrypt,
|
||||
libdl,
|
||||
libdw,
|
||||
libgcrypt,
|
||||
libiptc,
|
||||
libkmod,
|
||||
|
Loading…
Reference in New Issue
Block a user