public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH bfd: Fix linker warning for recently introduced arm attributes
@ 2021-09-27 14:40 Andrea Corallo
  2021-09-30 16:27 ` Nick Clifton
  2021-10-05  2:49 ` Simon Marchi
  0 siblings, 2 replies; 7+ messages in thread
From: Andrea Corallo @ 2021-09-27 14:40 UTC (permalink / raw)
  To: binutils; +Cc: richard.earnshaw, marcus.shawcroft, nd

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

Hi all,

this simple patch updates the value of 'NUM_KNOWN_OBJ_ATTRIBUTES' so
that when linking objects with 'Tag_BTI_use' or 'Tag_PACRET_use' set ld
does not emit the "unknown EABI object attribute" warning.

Regtested clean, okay for trunk?

Best Regards

  Andrea


[-- Attachment #2: 0001-PATCH-bfd-Fix-linker-warning-for-recently-introduced.patch --]
[-- Type: text/plain, Size: 998 bytes --]

From 39c0c12b13fdeb07695def0af19e8ed760bd882b Mon Sep 17 00:00:00 2001
From: Andrea Corallo <andrea.corallo@arm.com>
Date: Mon, 27 Sep 2021 16:04:31 +0200
Subject: [PATCH] PATCH bfd: Fix linker warning for recently introduced arm
 attributes

2021-09-27  Andrea Corallo  <andrea.corallo@arm.com>

	* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Update value to cover
	'Tag_BTI_use' and 'Tag_PACRET_use'.
---
 bfd/elf-bfd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index c247d52c615..c7dedf522da 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1814,7 +1814,7 @@ struct bfd_elf_section_data
 #define LEAST_KNOWN_OBJ_ATTRIBUTE 2
 
 /* The maximum number of known object attributes for any target.  */
-#define NUM_KNOWN_OBJ_ATTRIBUTES 71
+#define NUM_KNOWN_OBJ_ATTRIBUTES 77
 
 /* The value of an object attribute.  The type indicates whether the attribute
    holds and integer, a string, or both.  It can also indicate that there can
-- 
2.20.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-06  8:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27 14:40 PATCH bfd: Fix linker warning for recently introduced arm attributes Andrea Corallo
2021-09-30 16:27 ` Nick Clifton
2021-10-01  8:17   ` Andrea Corallo
2021-10-05  2:49 ` Simon Marchi
2021-10-06  0:03   ` Alan Modra
2021-10-06  2:14     ` Simon Marchi
2021-10-06  8:24       ` Andrea Corallo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).