diff mbox series

[02/10] elf: Add .relr.dyn to special_sections_r

Message ID 20220107190631.309790-3-hjl.tools@gmail.com
State New
Headers show
Series ld: Implement DT_RELR for x86 | expand

Commit Message

H.J. Lu Jan. 7, 2022, 7:06 p.m. UTC
* elf.c (special_sections_r): Add .relr.dyn.
---
 bfd/elf.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/bfd/elf.c b/bfd/elf.c
index 1003bd2cdbe..ef0d18105ba 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2714,6 +2714,7 @@  static const struct bfd_elf_special_section special_sections_r[] =
 {
   { STRING_COMMA_LEN (".rodata"), -2, SHT_PROGBITS, SHF_ALLOC },
   { STRING_COMMA_LEN (".rodata1"), 0, SHT_PROGBITS, SHF_ALLOC },
+  { STRING_COMMA_LEN (".relr.dyn"), 0, SHT_RELR, SHF_ALLOC },
   { STRING_COMMA_LEN (".rela"),	  -1, SHT_RELA,	    0 },
   { STRING_COMMA_LEN (".rel"),	  -1, SHT_REL,	    0 },
   { NULL,		    0,	   0, 0,	    0 }