freebsd-dev/sys/tools
Jessica Clarke 169b368a62 amd64: Pass DEBUG when building VDSO wrapper
Not doing so results in ctfconvert failing with

  ERROR: ctfconvert: elf-vdso.so.o doesn't have type data to convert

On FreeBSD this is non-fatal, since the ctf tools have a hack to make
such errors not fail the build and instead just silently continue
without CTF data (which is a bad idea these days and should probably be
removed; they date back to the original import). However, those are
under #ifdef __FreeBSD__ so do not apply when cross-building from
non-FreeBSD, causing the build to fail.

Fix this by forwarding DEBUG on to the compiler invocation for the VDSO
wrapper. It's assembly so it's not hugely useful, but there is a
non-zero amount of information preserved, and other assembly files are
built with -g by default too so this matches them; the alternative would
be to tag the files.amd64 entries with no-ctfmerge. Note that the VDSO
itself is still compiled without debug info, this only affects the
wrapper linked into the kernel.

Fixes:		98c8b62524 ("vdso for ia32 on amd64"), ab4524b3d7 ("amd64: wrap 64bit sigtramp into vdso")
MFC after:	1 month
2021-12-07 00:24:20 +00:00
..
fdt ipq4018: add TCSR definitions from Linux. 2021-10-18 19:18:01 +00:00
sound
acpi_quirks2h.awk
amd64_ia32_vdso.sh amd64: Pass DEBUG when building VDSO wrapper 2021-12-07 00:24:20 +00:00
amd64_vdso.sh amd64: Pass DEBUG when building VDSO wrapper 2021-12-07 00:24:20 +00:00
arm_kernel_boothdr.awk booti: Enable loading the kernel image to any address aligned to 2 MB 2021-07-28 13:42:13 +02:00
bus_macro.sh Add NetBSD compatible bus_space_peek_N() and bus_space_poke_N() functions. 2020-09-19 11:06:41 +00:00
embed_mfs.sh embed_mfs.sh: replace some compound statements with conventional ifs 2018-11-02 21:07:06 +00:00
fw_stub.awk fw_stub: fix -Wunused-but-set-variable for firmware files 2021-11-30 14:23:18 +00:00
makeobjops.awk newbus: remove support for SINGLETON 2021-04-26 11:41:08 -06:00
makesyscalls.lua makesyscalls: add a new SYSMUX type 2021-11-29 22:04:43 +00:00
miidevs2h.awk
pccarddevs2h.awk
sdiodevs2h.awk Add SDIO support. 2019-06-08 16:26:56 +00:00
usbdevs2h.awk Avoid using \$. It's an unknown escape sequence. Some awks warn about 2018-01-28 05:13:08 +00:00
vdso_wrap.S amd64: wrap 64bit sigtramp into vdso 2021-12-06 20:46:49 +02:00
vnode_if.awk vfs: inline vops if there are no pre/post associated calls 2020-07-30 15:50:51 +00:00