Skip to content

Commit

Permalink
Re-enable fatal linker warnings for programs using netlink
Browse files Browse the repository at this point in the history
netlink no longer uses a zero-length symbol.

This reverts commit 3301b01.
This reverts commit 7ec12fe.
This reverts commit 11fa5ec.
  • Loading branch information
bsdjhb committed Feb 27, 2024
1 parent 7bb1cfa commit 3291f42
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 39 deletions.
3 changes: 0 additions & 3 deletions libexec/tftp-proxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ MAN= tftp-proxy.8
CFLAGS+= -I${SRCTOP}/lib/libpfctl -I${OBJTOP}/lib/libpfctl
LIBADD= pfctl

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS=no

WARNS?= 3

.include <bsd.prog.mk>
3 changes: 0 additions & 3 deletions rescue/rescue/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ CRUNCH_ALIAS_chown= chgrp

CRUNCH_LIBS+= ${OBJTOP}/lib/libifconfig/libifconfig.a
CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS+=-I${OBJTOP}/lib/libifconfig
# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
# >>> defined in libifconfig_carp.c (libifconfig_carp.o:(.rodata+0x1E2C70)
LD_FATAL_WARNINGS= no

CRUNCH_LIBS_ifconfig+= ${LIBNV}

Expand Down
4 changes: 0 additions & 4 deletions sbin/ifconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ SRCS+= ifconfig_netlink.c
CFLAGS+=-DWITHOUT_NETLINK
.endif

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
# >>> defined in libifconfig_carp.c (libifconfig_carp.pieo:(.rodata+0x8A10)
LD_FATAL_WARNINGS=no

MAN= ifconfig.8

CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
Expand Down
3 changes: 0 additions & 3 deletions sbin/pfctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ YFLAGS=

LIBADD= m md pfctl

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS=no

HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests

Expand Down
3 changes: 0 additions & 3 deletions sbin/route/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ CFLAGS+= -I.

.if ${MK_NETLINK_SUPPORT} != "no"
SRCS+= route_netlink.c

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS=no
.else
CFLAGS+=-DWITHOUT_NETLINK
.endif
Expand Down
4 changes: 0 additions & 4 deletions tools/cheribsdbox/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ CRUNCH_LIBS+= -lsysdecode
CRUNCH_LIBS+= -l80211
CRUNCH_LIBS+= ${CRUNCH_OBJTOP}/lib/libifconfig/libifconfig.a
CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS+=-I${CRUNCH_OBJTOP}/lib/libifconfig
# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
# >>> defined in libifconfig_carp.c (libifconfig_carp.o:(.rodata+0xE76D0)
LD_FATAL_WARNINGS=no

# needed by fetch:
CRUNCH_LIBS+= -lfetch
# devinfo
Expand Down
3 changes: 0 additions & 3 deletions usr.bin/genl/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
PROG= genl

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS= no

.include <bsd.prog.mk>
4 changes: 0 additions & 4 deletions usr.bin/netstat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ BINGRP= kmem
BINMODE=2555
LIBADD= kvm memstat xo util

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
# >>> defined in route_netlink.c (route_netlink.o:(.rodata+0xDAC0))
LD_FATAL_WARNINGS=no

.if ${MK_NETGRAPH_SUPPORT} != "no"
SRCS+= netgraph.c
LIBADD+= netgraph
Expand Down
3 changes: 0 additions & 3 deletions usr.sbin/arp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ SRCS= arp.c

.if ${MK_NETLINK_SUPPORT} != "no"
SRCS+= arp_netlink.c

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS=no
.else
CFLAGS+=-DWITHOUT_NETLINK
.endif
Expand Down
3 changes: 0 additions & 3 deletions usr.sbin/authpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ CFLAGS+= -I${SRCTOP}/lib/libpfctl -I${OBJTOP}/lib/libpfctl

LIBADD= m util pfctl

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS=no

WARNS?= 3

LINKS= ${BINDIR}/authpf ${BINDIR}/authpf-noip
Expand Down
3 changes: 0 additions & 3 deletions usr.sbin/ftp-proxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ CFLAGS+= -I${SRCTOP}/lib/libpfctl -I${OBJTOP}/lib/libpfctl

LIBADD= event1 pfctl

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS=no

WARNS?= 3

.include <bsd.prog.mk>
3 changes: 0 additions & 3 deletions usr.sbin/ndp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ CFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG

.if ${MK_NETLINK_SUPPORT} != "no"
SRCS+= ndp_netlink.c

# ld.lld: error: could not determine size of cap reloc against local object nla_p_donemsg
LD_FATAL_WARNINGS=no
.else
CFLAGS+=-DWITHOUT_NETLINK
.endif
Expand Down

0 comments on commit 3291f42

Please sign in to comment.