elfutils | mirror of elfutils
kandi X-RAY | elfutils Summary
kandi X-RAY | elfutils Summary
The elfutils project provides libraries and tools for ELF files and DWARF data. The project home is Releases are published at ftp://sourceware.org/pub/elfutils/ Which can also be found at To build a release do: ./configure && make && make check Please check the configure summary to make sure all recommended features are enabled. There should be no failures after make check. Please reports bugs at The current elfutils source code can be checked out with git clone git://sourceware.org/git/elfutils.git. To build a git checkout do: autoreconf -i -f && ./configure --enable-maintainer-mode && make && make check. The developer mailinglist to send patches to is elfutils-devel@sourceware.org. To subscribe send an email to elfutils-devel-subscribe@sourceware.org Or use the form at See the CONTRIBUTING file for how to propose patches to the code. See the NOTES files for some design decisions and notes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elfutils
elfutils Key Features
elfutils Examples and Code Snippets
Community Discussions
Trending Discussions on elfutils
QUESTION
I need a information , i am trying all day with no help , any help is much appreciated .
this is my Dockerfile
...ANSWER
Answered 2022-Mar-10 at 10:40There are two ways to set environment variables in a Dockerfile. ARG
values are only visible in RUN
instructions, and can't be changed after the image has been built. ENV
values are visible while the container is running to (in the ENTRYPOINT
/CMD
) and can be changed when the container is run, but can't be directly set at build time.
Since this is a value you're trying to set when the container is running, you want ENV
and not ARG
. In your Kubernetes manifest, you can change this using a Pod spec's env:
setting. (Also Compose environment:
or the docker run -e
option.)
More specifically in a Helm context, I would recommend making "environment name" a configurable value, rather than pass in an undifferentiated list of command-line arguments or environment values.
QUESTION
On an embedded Linux device (Colibri module with an iMX7d processor) I am not able to run the command systemctl suspend
as an non-root user in order to switch into suspend mode. When I log in as root user, the command is executed and the system switches to suspend mode. The same command runs on a Ubuntu PC system as an non-root user.
I would like enter the suspend mode also on the embedded Linux device without root privileges. Can anybody help me or show me the direction on how to achieve this? Any help would be greatly appreciated.
Here is the Linux kernel version of the embedded device:
...ANSWER
Answered 2021-Oct-06 at 08:05To allow running root only command for other (non-root) users, you can use sudo https://linux.die.net/man/8/sudo
Assuming your non-root user that needs to be able to suspend is called: user1
Create file in /root/suspend.sh
that contains systemctl suspend
, and make sure it's mode is 0700
and owned by root:root
, e.g. run these as root:
QUESTION
I am trying to restrict the swap usage of a process using MemorySwapMax
as mentioned in the doc with Ubuntu 18.04.
Environment
...ANSWER
Answered 2021-Jul-12 at 14:33This has been answered in systemd mailing list.
Re-posting relevant parts.
Looks like your Ubuntu version is using the "hybrid" cgroup mode by default. Cgroup v2 is indeed enabled in your kernel, but not necessarily in use – in the hybrid mode, systemd still mounts all resource controllers (cpu, memory, etc.) in v1 mode and only sets up its own process tracking in the v2 tree. See
findmnt
.You could boot with the systemd.unified_cgroup_hierarchy=1 kernel option to switch everything to cgroups v2, but if you're using container software (docker, podman) make sure those are cgroups v2-compatible.
Hello Debraj.
On Thu, Jul 08, 2021 at 05:10:44PM +0530, Debraj Manna wrote:
Linux vrni-platform 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux [...] GRUB_CMDLINE_LINUX="audit=1 rootdelay=180 nousb net.ifnames=0 biosdevname=0 fsck.mode=force fsck.repair=yes ipv6.disable=1 systemd.unified_cgroup_hierarchy=1"
Even after making these changes MemorySwapMax not taking into effect.
You need to add also swapaccount=1, swap accounting is enabled by default only since kernel v5.8.
QUESTION
I am trying to run Ansible playbook on WSL 2 with Ubuntu20.04. Majority of tasks work properly, however all tasks which manage the services (e.g. start nginx) fails.
Ansible code:
...ANSWER
Answered 2021-Jun-18 at 15:09There are actually two problems you are running into. First, it looks like you are specifically using the Ansible systemd module. That's not going to work, since WSL doesn't support systemd without extensive effort.
Since the WSL Ubuntu 20.04 distribution, as you've noticed, does provide a fallback to the service
command, you should be able to simply swap that out with the Ansible service module. E.g.:
QUESTION
I want to cross-compile elfutils
for a RISC-V target and I get linker errors which I don't know how to solve. I use the riscv-gnu-toolchain.
zlib
elfutils
is build against zlib
, so I need to build it first:
ANSWER
Answered 2021-May-15 at 20:22I needed to add LIBS="-lz -lzstd -llzma"
. The full configuration command looks like this:
QUESTION
Yesterday we lost contact with 10 identically configured servers, after some investigation the conclusion was that a reboot after security updates had failed.
We have so far not been able to get any of the servers back online, but were lucky enough to be able to reinstall the instances without data loss.
I will paste the console log below, can anyone help me determine the root cause and perhaps give me some advice on if there is a better way to configure the server to make recovery easier (like getting past the "Press Enter to continue." prompt, that it seems to hang in).
The full log is too big for SO, so I put it on pastebin and pasted a redacted version below. I have removed the escape sequences that colorize the output and removed some double new lines, but besides that it is complete.
...ANSWER
Answered 2020-Oct-30 at 11:21Ok, shortly after posting we figured it out. Seems like a mount point has changed (I expect due to a linux kernel update) and we have not used the nofail option in /etc/fstab as described in the aws knowledge center, this caused the server to hang at boot.
Going forward we will also ensure we use UUID mounting so we are independent on the device naming in /dev/.
QUESTION
I'm trying to build an Android 10 rom on Mac OS High Sierra (10.13.6) but even after establishing the build enviroment as it is stated here https://source.android.com/setup/build/initializing I am getting the following output
...ANSWER
Answered 2020-Sep-04 at 00:21Well, what I did that made compiling go on was to copy as
(and afterwards ls
as well because it was causing a similar issue)from /usr/bin/ to prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/libexec/gcc/i686-apple-darwin11/4.2.1/ replacing the as
and ls
that when I tried executing it said that the shortcut was being directed to nowhere (or something like that, I'm translating from spanish)
QUESTION
I am getting error when I run the following command:
...ANSWER
Answered 2020-Apr-16 at 21:58I was able to resolve the same issue following this other answer, basically by adding --sysctl net.ipv6.conf.lo.disable_ipv6=0
into my docker run ...
command. I don't actually know why it needs to be there but my symptoms were the same as yours and this did the trick. Here is my full command for testing:
QUESTION
I have a pretty simple test service.
Ultimately I'll be running a node
daemon, but debugging this problem with env
for now...
ANSWER
Answered 2020-Jan-27 at 08:27Ubuntu 18.04.3 does not have the lastest systemd.
The support for the environment variables was added in v240.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elfutils
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page