summaryrefslogtreecommitdiffstats
path: root/tags/s/specific-address-in-shared-library.tag
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /tags/s/specific-address-in-shared-library.tag
parentInitial commit. (diff)
downloadlintian-upstream.tar.xz
lintian-upstream.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tags/s/specific-address-in-shared-library.tag')
-rw-r--r--tags/s/specific-address-in-shared-library.tag21
1 files changed, 21 insertions, 0 deletions
diff --git a/tags/s/specific-address-in-shared-library.tag b/tags/s/specific-address-in-shared-library.tag
new file mode 100644
index 0000000..316fadf
--- /dev/null
+++ b/tags/s/specific-address-in-shared-library.tag
@@ -0,0 +1,21 @@
+Tag: specific-address-in-shared-library
+Severity: error
+Check: libraries/shared/relocation
+Renamed-From:
+ shlib-with-non-pic-code
+Explanation: The listed shared libraries contain object code that was compiled
+ without -fPIC. All object code in shared libraries should be recompiled
+ separately from the static libraries with the -fPIC option.
+ .
+ Another common mistake that causes this problem is linking with
+ <code>gcc -Wl,-shared</code> instead of <code>gcc -shared</code>.
+ .
+ In some cases, exceptions to this rule are warranted. If this is such a
+ case, follow the procedure outlined in Policy and then please document
+ the exception by adding a Lintian override to this package.
+ .
+ To check whether a shared library has this problem, run <code>readelf
+ -d</code> on the shared library. If a tag of type TEXTREL is present, the
+ shared library contains non-PIC code.
+See-Also:
+ debian-policy 10.2