Skip to content

Commit 408984e

Browse files
committed
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.
1 parent 8077496 commit 408984e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bfd/bfd.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,12 @@ EXTERNAL
719719
#define EXIT_FAILURE 1
720720
#endif
721721

722+
/* Configure will leave this undefined, but it's unconditionally used
723+
in a definition later. */
724+
#ifndef TLS
725+
#define TLS
726+
#endif
727+
722728

723729
/* provide storage for subsystem, stack and heap data which may have been
724730
passed in on the command line. Ld puts this data into a bfd_link_info

0 commit comments

Comments
 (0)