summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:24:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:24:33 +0000
commit2459d9471afbe2b019744f4335f66025b73965de (patch)
treecc611a48837b355ff21f8e3715fab4f93e29ac43 /debian/patches
parentAdding upstream version 1:3.9.0. (diff)
downloadpciutils-2459d9471afbe2b019744f4335f66025b73965de.tar.xz
pciutils-2459d9471afbe2b019744f4335f66025b73965de.zip
Adding debian version 1:3.9.0-4.debian/1%3.9.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0001-Fix-versioned-symbol-aliases-when-used-with-link-tim.patch33
-rw-r--r--debian/patches/series1
2 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/0001-Fix-versioned-symbol-aliases-when-used-with-link-tim.patch b/debian/patches/0001-Fix-versioned-symbol-aliases-when-used-with-link-tim.patch
new file mode 100644
index 0000000..5e7c891
--- /dev/null
+++ b/debian/patches/0001-Fix-versioned-symbol-aliases-when-used-with-link-tim.patch
@@ -0,0 +1,33 @@
+From 2d16e3a7875a9cb5abd60713bb2e39b536a7dec4 Mon Sep 17 00:00:00 2001
+From: Martin Mares <mj@ucw.cz>
+Date: Wed, 28 Dec 2022 13:48:47 +0100
+Origin: upstream, commit:2d16e3a7875a9cb5abd60713bb2e39b536a7dec4
+Subject: [PATCH] Fix versioned symbol aliases when used with link-time
+ optimization
+
+---
+ lib/internal.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/internal.h b/lib/internal.h
+index ed0e94f..e9e413e 100644
+--- a/lib/internal.h
++++ b/lib/internal.h
+@@ -15,12 +15,12 @@
+ // optimizations is happy to optimize them away, leading to linker failures.
+ #define VERSIONED_ABI __attribute__((used)) PCI_ABI
+ #ifdef __APPLE__
+-#define STATIC_ALIAS(_decl, _for) _decl PCI_ABI { return _for; }
++#define STATIC_ALIAS(_decl, _for) _decl VERSIONED_ABI { return _for; }
+ #define DEFINE_ALIAS(_decl, _for)
+ #define SYMBOL_VERSION(_int, _ext)
+ #else
+ #define STATIC_ALIAS(_decl, _for)
+-#define DEFINE_ALIAS(_decl, _for) extern _decl __attribute__((alias(#_for)))
++#define DEFINE_ALIAS(_decl, _for) extern _decl __attribute__((alias(#_for))) VERSIONED_ABI
+ #ifdef _WIN32
+ /* GCC does not support asm .symver directive for Windows targets, so define new external global function symbol as alias to internal symbol */
+ #define SYMBOL_VERSION(_int, _ext) asm(".globl\t" PCI_STRINGIFY(__MINGW_USYMBOL(_ext)) "\n\t" \
+--
+2.39.0
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..08e75d6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-versioned-symbol-aliases-when-used-with-link-tim.patch