diff options
| author | Michael Forney <mforney@mforney.org> | 2020-02-21 12:53:37 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-03-01 19:24:50 -0800 |
| commit | c1514cd74c4735404fd2788fed5061e3802a7d14 (patch) | |
| tree | 26196a5ee0eb679bfd77faccc4d52ced25f6e0ff /pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch | |
| parent | db57e3849760fe7a9de6db220a11a4669db7edb1 (diff) | |
binutils: Fix some portability issues
Diffstat (limited to 'pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch')
| -rw-r--r-- | pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch b/pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch new file mode 100644 index 00000000..beae73fa --- /dev/null +++ b/pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch @@ -0,0 +1,27 @@ +From b1d62f15c5a4b89df12aca33a58fe9405bf53a67 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Tue, 19 Nov 2019 19:33:01 -0800 +Subject: [PATCH] libctf: Remove usage of __thread + +We only use libctf for building single-threaded binutils, so __thread +is not necessary. +--- + libctf/ctf-archive.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c +index 73d772ffc3..4896aa721b 100644 +--- a/libctf/ctf-archive.c ++++ b/libctf/ctf-archive.c +@@ -45,7 +45,7 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, + static int arc_mmap_unmap (void *header, size_t headersz, const char **errmsg); + + /* bsearch() internal state. */ +-static __thread char *search_nametbl; ++static char *search_nametbl; + + /* Write out a CTF archive to the start of the file referenced by the passed-in + fd. The entries in CTF_FILES are referenced by name: the names are passed in +-- +2.25.1 + |
