From: Tom Tromey Date: Fri, 30 May 2025 13:04:03 +0000 (-0600) Subject: Define TLS in bfd.c if not already defined X-Git-Tag: binutils-2_45~443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=408984ea7b8b9f29104ad7642a4fa7d8daabb788;p=thirdparty%2Fbinutils-gdb.git Define TLS in bfd.c if not already defined If configure decides that thread-local storage isn't available, it does not define "TLS". However, this is used unconditionally in a definition. So, define it if it isn't already defined. --- diff --git a/bfd/bfd.c b/bfd/bfd.c index bb8ec43ef2b..f207312d536 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -719,6 +719,12 @@ EXTERNAL #define EXIT_FAILURE 1 #endif +/* Configure will leave this undefined, but it's unconditionally used + in a definition later. */ +#ifndef TLS +#define TLS +#endif + /* provide storage for subsystem, stack and heap data which may have been passed in on the command line. Ld puts this data into a bfd_link_info