changeset 20573:ba84505efda1

check_rtime: remove -Bdirect and -zcombreloc checks gnu ld does not support direct binding or .SUNW_reloc, so we can't really insist on these.
author Lauri Tirkkonen <lotheac@iki.fi>
date Sun, 12 May 2019 23:12:04 +0000
parents d2ee471a4e65
children 19cbdf529781
files usr/src/tools/scripts/check_rtime.pl
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/tools/scripts/check_rtime.pl	Sun May 12 22:53:12 2019 +0000
+++ b/usr/src/tools/scripts/check_rtime.pl	Sun May 12 23:12:04 2019 +0000
@@ -579,14 +579,6 @@
 		}
 	}
 
-	# A shared object, that contains non-plt relocations, should have a
-	# combined relocation section indicating it was built with -z combreloc.
-	if ((($Type eq 'DYN') || ($Type eq 'PIE')) &&
-	    $Relsz && ($Relsz != $Pltsz) && ($Sun == 0)) {
-		onbld_elfmod::OutMsg($ErrFH, $ErrTtl, $RelPath,
-		    ".SUNW_reloc section missing\t\t<no -zcombreloc?>");
-	}
-
 	# No objects released to a customer should have any .stabs sections
 	# remaining, they should be stripped.
 	if ($opt{s} && $Stab) {
@@ -596,16 +588,6 @@
 		    "debugging sections should be deleted\t<no strip -x?>");
 	}
 
-	# Identify an object that is not built with either -B direct or
-	# -z direct.
-	goto DONESTAB
-	    if (defined($EXRE_nodirect) && ($RelPath =~ $EXRE_nodirect));
-
-	if ($Relsz && ($HasDirectBinding == 0)) {
-		onbld_elfmod::OutMsg($ErrFH, $ErrTtl, $RelPath,
-		 "object has no direct bindings\t<no -B direct or -z direct?>");
-	}
-
 DONESTAB:
 
 	# All objects should have a full symbol table to provide complete