diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-29 05:52:22 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-29 05:53:01 -0700 |
commit | a57f74bb7cc15f1116f72c6d70dcc3f31c303ad4 (patch) | |
tree | e18faca250e7e4d1ba22165b32316e754636cd01 /ld/testsuite | |
parent | a3ca48cdda743dc2756e8c689feab67273969db0 (diff) | |
download | gdb-a57f74bb7cc15f1116f72c6d70dcc3f31c303ad4.zip gdb-a57f74bb7cc15f1116f72c6d70dcc3f31c303ad4.tar.gz gdb-a57f74bb7cc15f1116f72c6d70dcc3f31c303ad4.tar.bz2 |
tic6x: Call _bfd_elf_add_dynamic_tags
Update tic6x linker tests to expect C6000_DSBT_BASE, C6000_DSBT_SIZE and
C6000_DSBT_INDEX dynamic tags immediately before NULL dynamic tag.
bfd/
* elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Call
_bfd_elf_add_dynamic_tags.
ld/
* testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,
C6000_DSBT_SIZE and C6000_DSBT_INDEX dynamic tags to the last.
* testsuite/ld-tic6x/shlib-1b.rd: Likewise.
* testsuite/ld-tic6x/shlib-1r.rd: Likewise.
* testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
* testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
* testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
* testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
* testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
* testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
* testsuite/ld-tic6x/static-app-1.rd: Likewise.
* testsuite/ld-tic6x/static-app-1b.rd: Likewise.
* testsuite/ld-tic6x/static-app-1r.rd: Likewise.
* testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1b.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1r.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1rb.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1b.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1r.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1rb.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-noindex.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1b.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1r.rd | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1rb.rd | 6 |
13 files changed, 39 insertions, 39 deletions
diff --git a/ld/testsuite/ld-tic6x/shlib-1.rd b/ld/testsuite/ld-tic6x/shlib-1.rd index 469bce9..af3815c 100644 --- a/ld/testsuite/ld-tic6x/shlib-1.rd +++ b/ld/testsuite/ld-tic6x/shlib-1.rd @@ -47,9 +47,6 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000006 \(SYMTAB\) 0x8044 0x0000000a \(STRSZ\) 18 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) - 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000003 \(PLTGOT\) 0x1000010c 0x00000002 \(PLTRELSZ\) 24 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -57,6 +54,9 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000007 \(RELA\) 0x8118 0x00000008 \(RELASZ\) 84 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x1118 contains 3 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-1b.rd b/ld/testsuite/ld-tic6x/shlib-1b.rd index 469bce9..af3815c 100644 --- a/ld/testsuite/ld-tic6x/shlib-1b.rd +++ b/ld/testsuite/ld-tic6x/shlib-1b.rd @@ -47,9 +47,6 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000006 \(SYMTAB\) 0x8044 0x0000000a \(STRSZ\) 18 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) - 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000003 \(PLTGOT\) 0x1000010c 0x00000002 \(PLTRELSZ\) 24 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -57,6 +54,9 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000007 \(RELA\) 0x8118 0x00000008 \(RELASZ\) 84 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x1118 contains 3 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-1r.rd b/ld/testsuite/ld-tic6x/shlib-1r.rd index 469bce9..af3815c 100644 --- a/ld/testsuite/ld-tic6x/shlib-1r.rd +++ b/ld/testsuite/ld-tic6x/shlib-1r.rd @@ -47,9 +47,6 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000006 \(SYMTAB\) 0x8044 0x0000000a \(STRSZ\) 18 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) - 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000003 \(PLTGOT\) 0x1000010c 0x00000002 \(PLTRELSZ\) 24 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -57,6 +54,9 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000007 \(RELA\) 0x8118 0x00000008 \(RELASZ\) 84 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x1118 contains 3 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-1rb.rd b/ld/testsuite/ld-tic6x/shlib-1rb.rd index 469bce9..af3815c 100644 --- a/ld/testsuite/ld-tic6x/shlib-1rb.rd +++ b/ld/testsuite/ld-tic6x/shlib-1rb.rd @@ -47,9 +47,6 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000006 \(SYMTAB\) 0x8044 0x0000000a \(STRSZ\) 18 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) - 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000003 \(PLTGOT\) 0x1000010c 0x00000002 \(PLTRELSZ\) 24 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -57,6 +54,9 @@ Dynamic section at offset 0x1154 contains 16 entries: 0x00000007 \(RELA\) 0x8118 0x00000008 \(RELASZ\) 84 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x2 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x1118 contains 3 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-app-1.rd b/ld/testsuite/ld-tic6x/shlib-app-1.rd index ad181eb..4725356 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1.rd @@ -50,9 +50,6 @@ Dynamic section at offset 0x1150 contains 18 entries: 0x0000000a \(STRSZ\) 34 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000003 \(PLTGOT\) 0x100000ac 0x00000002 \(PLTRELSZ\) 12 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -60,6 +57,9 @@ Dynamic section at offset 0x1150 contains 18 entries: 0x00000007 \(RELA\) 0x8114 0x00000008 \(RELASZ\) 72 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x1114 contains 2 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-app-1b.rd b/ld/testsuite/ld-tic6x/shlib-app-1b.rd index 6390a5d..4564ffe 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1b.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1b.rd @@ -50,9 +50,6 @@ Dynamic section at offset 0x1150 contains 18 entries: 0x0000000a \(STRSZ\) 35 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000003 \(PLTGOT\) 0x100000ac 0x00000002 \(PLTRELSZ\) 12 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -60,6 +57,9 @@ Dynamic section at offset 0x1150 contains 18 entries: 0x00000007 \(RELA\) 0x8114 0x00000008 \(RELASZ\) 72 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x1114 contains 2 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-app-1r.rd b/ld/testsuite/ld-tic6x/shlib-app-1r.rd index 4a38da9..797b8aa 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1r.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1r.rd @@ -49,9 +49,6 @@ Dynamic section at offset 0x110c contains 18 entries: 0x0000000a \(STRSZ\) 29 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000003 \(PLTGOT\) 0x100000ac 0x00000002 \(PLTRELSZ\) 12 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -59,6 +56,9 @@ Dynamic section at offset 0x110c contains 18 entries: 0x00000007 \(RELA\) 0x80e8 0x00000008 \(RELASZ\) 48 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x10e8 contains 2 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd index 2ad86cb..d23eb2a 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd @@ -49,9 +49,6 @@ Dynamic section at offset 0x110c contains 18 entries: 0x0000000a \(STRSZ\) 30 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000003 \(PLTGOT\) 0x100000ac 0x00000002 \(PLTRELSZ\) 12 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -59,6 +56,9 @@ Dynamic section at offset 0x110c contains 18 entries: 0x00000007 \(RELA\) 0x80e8 0x00000008 \(RELASZ\) 48 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000a0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x10e8 contains 2 entries: diff --git a/ld/testsuite/ld-tic6x/shlib-noindex.rd b/ld/testsuite/ld-tic6x/shlib-noindex.rd index ea515be..bca8810 100644 --- a/ld/testsuite/ld-tic6x/shlib-noindex.rd +++ b/ld/testsuite/ld-tic6x/shlib-noindex.rd @@ -48,9 +48,6 @@ Dynamic section at offset 0x1160 contains 17 entries: 0x00000006 \(SYMTAB\) 0x8044 0x0000000a \(STRSZ\) 18 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) - 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000003 \(PLTGOT\) 0x1000010c 0x00000002 \(PLTRELSZ\) 24 \(bytes\) 0x00000014 \(PLTREL\) RELA @@ -59,6 +56,9 @@ Dynamic section at offset 0x1160 contains 17 entries: 0x00000008 \(RELASZ\) 96 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) 0x00000016 \(TEXTREL\) 0x0 + 0x70000000 \(C6000_DSBT_BASE\) 0x10000100 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.text' at offset 0x1118 contains 1 entry: diff --git a/ld/testsuite/ld-tic6x/static-app-1.rd b/ld/testsuite/ld-tic6x/static-app-1.rd index 8fa3437..ba00065 100644 --- a/ld/testsuite/ld-tic6x/static-app-1.rd +++ b/ld/testsuite/ld-tic6x/static-app-1.rd @@ -46,12 +46,12 @@ Dynamic section at offset 0x1128 contains 13 entries: 0x0000000a \(STRSZ\) 10 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000007 \(RELA\) 0x80d4 0x00000008 \(RELASZ\) 84 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x10d4 contains 3 entries: diff --git a/ld/testsuite/ld-tic6x/static-app-1b.rd b/ld/testsuite/ld-tic6x/static-app-1b.rd index 8fa3437..ba00065 100644 --- a/ld/testsuite/ld-tic6x/static-app-1b.rd +++ b/ld/testsuite/ld-tic6x/static-app-1b.rd @@ -46,12 +46,12 @@ Dynamic section at offset 0x1128 contains 13 entries: 0x0000000a \(STRSZ\) 10 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000007 \(RELA\) 0x80d4 0x00000008 \(RELASZ\) 84 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x10d4 contains 3 entries: diff --git a/ld/testsuite/ld-tic6x/static-app-1r.rd b/ld/testsuite/ld-tic6x/static-app-1r.rd index 9b05b46..c0f934b 100644 --- a/ld/testsuite/ld-tic6x/static-app-1r.rd +++ b/ld/testsuite/ld-tic6x/static-app-1r.rd @@ -46,12 +46,12 @@ Dynamic section at offset 0x1110 contains 13 entries: 0x0000000a \(STRSZ\) 10 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000007 \(RELA\) 0x80d4 0x00000008 \(RELASZ\) 60 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x10d4 contains 3 entries: diff --git a/ld/testsuite/ld-tic6x/static-app-1rb.rd b/ld/testsuite/ld-tic6x/static-app-1rb.rd index 9b05b46..c0f934b 100644 --- a/ld/testsuite/ld-tic6x/static-app-1rb.rd +++ b/ld/testsuite/ld-tic6x/static-app-1rb.rd @@ -46,12 +46,12 @@ Dynamic section at offset 0x1110 contains 13 entries: 0x0000000a \(STRSZ\) 10 \(bytes\) 0x0000000b \(SYMENT\) 16 \(bytes\) 0x00000015 \(DEBUG\) 0x0 - 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 - 0x70000001 \(C6000_DSBT_SIZE\) 0x3 - 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000007 \(RELA\) 0x80d4 0x00000008 \(RELASZ\) 60 \(bytes\) 0x00000009 \(RELAENT\) 12 \(bytes\) + 0x70000000 \(C6000_DSBT_BASE\) 0x100000c0 + 0x70000001 \(C6000_DSBT_SIZE\) 0x3 + 0x70000003 \(C6000_DSBT_INDEX\) 0x0 0x00000000 \(NULL\) 0x0 Relocation section '\.rela\.got' at offset 0x10d4 contains 3 entries: |