Repository navigation
Commit 02e0dc9
tools: ctl: drop build-tree RUNPATH from sof-ctl
sof-ctl adds tools/lib as a link directory so it can link against a
locally built ALSA. CMake also embeds that directory in the ELF
RPATH/RUNPATH, so the binary carries a reference into the build tree.
On install the path is stripped to an empty string, which leaves an
empty DT_RUNPATH tag behind. Distro ELF security scanners reject that:
scanelf reports "Security problem NULL DT_RUNPATH".
Keep tools/lib as a -L link path only: skip the build RPATH and keep
the install RPATH empty so no DT_RUNPATH tag is emitted at all. The
installed binary resolves libasound through the normal loader search
path.
Link: #10070
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 056b149 commit 02e0dc9
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
14 | 24 | | |
15 | 25 | | |
16 | 26 | | |
| |||
0 commit comments