Print this page
4519 ABI checking needs to adapt to modern times, run by default

@@ -101,11 +101,11 @@
 sub Category {
         my ($Ver, $Soname) = @_;
 
         # For Solaris and related products, the SUNW_ prefix is
         # used for numbered public versions.
-        if ($Ver =~ /^(SUNW_)(\d+)\.(\d+)(\.(\d+))?/) {
+        if ($Ver =~ /^((?:SUNW|ILLUMOS)_)(\d+)\.(\d+)(\.(\d+))?/) {
                 return ('NUMBERED', 3, $1, $2, $3, $5) if defined($5);
                 return ('NUMBERED', 2, $1, $2, $3);
         }
 
         # Well known plain versions. In Solaris, these names were used

@@ -122,11 +122,11 @@
         # The Solaris convention is to use SUNWprivate to indicate
         # private versions. SUNWprivate can have a numeric suffix, but
         # the number is not significant for ELF versioning other than
         # being part of a unique name.
         return ('PRIVATE')
-            if ($Ver =~ /^SUNWprivate(_[0-9.]+)?$/);
+            if ($Ver =~ /^(SUNW|ILLUMOS)private(_[0-9.]+)?$/);
 
         # Anything else is a version we don't recognize.
         return ('UNKNOWN');
 }