Mon May 2 20:09:48 2022 UTC ()
Follow FreeBSD revision <0e15d9fbeba4> and simplify #ifdef'ed code.

This change avoids redefining 'SHN_SUNW_IGNORE' if the symbol is already
present.


(jkoshy)
diff -r1.12 -r1.13 src/external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c

cvs diff -r1.12 -r1.13 src/external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c (expand / switch to context diff)
--- src/external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c 2019/12/03 22:10:56 1.12
+++ src/external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c 2022/05/02 20:09:48 1.13
@@ -1678,11 +1678,8 @@
 			 * already been processed by an earlier link
 			 * invocation.
 			 */
-#ifndef illumos
-#define SHN_SUNW_IGNORE	SHN_ABS
-#endif
-			if (rsym.st_shndx != SHN_SUNW_IGNORE) {
-				rsym.st_shndx = SHN_SUNW_IGNORE;
+			if (rsym.st_shndx != SHN_ABS) {
+				rsym.st_shndx = SHN_ABS;
 				(void) gelf_update_sym(data_sym, ndx, &rsym);
 			}
 		}