Nilesh Patra pushed to branch master at lintian / lintian


Commits:
f86769c5 by Emanuele Rocca at 2025-09-16T12:18:41+02:00
Mention StaticLinking wiki page for go programs

The statically-linked-binary check explicitly excludes golang programs. At
first glance it may seem that binaries produced by the go compiler are actually
linked dynamically, but that is only partially true (only libc is in fact
dynamically linked), and only for programs not using any cgo. Point to the wiki
page explaining this.

- - - - -


1 changed file:

- lib/Lintian/Check/Binaries/Static.pm


Changes:

=====================================
lib/Lintian/Check/Binaries/Static.pm
=====================================
@@ -91,14 +91,14 @@ sub visit_installed_files {
 
     my $is_shared = $item->file_type =~ m/(shared object|pie executable)/;
 
-    # Some exceptions: files in /boot, /usr/lib/debug/*,
-    # named *-static or *.static, or *-static as
-    # package-name.
-    # Binaries built by the Go compiler are statically
-    # linked by default.
-    # klibc binaries appear to be static.
-    # Location of debugging symbols.
-    # ldconfig must be static.
+   # Some exceptions: files in /boot, /usr/lib/debug/*,
+   # named *-static or *.static, or *-static as
+   # package-name.
+   # Binaries built by the Go compiler not using any cgo are statically linked:
+   # https://wiki.debian.org/StaticLinking#Go
+   # klibc binaries appear to be static.
+   # Location of debugging symbols.
+   # ldconfig must be static.
     $self->pointed_hint('statically-linked-binary', $item->pointer)
       if !$is_shared
       && !exists $item->elf->{NEEDED}



View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/f86769c5186d154d0bed408b7814580a302d0060

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/f86769c5186d154d0bed408b7814580a302d0060
You're receiving this email because of your account on salsa.debian.org.


Reply via email to