diff --git a/ld/ChangeLog b/ld/ChangeLog index 89f4766481..edefd03a38 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,13 @@ +2017-01-23 Maciej W. Rozycki + + PR ld/20828 + * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to + `fdata' and `edata' respectively. + * testsuite/ld-elf/pr20828.ver: Adjust accordingly. + * testsuite/ld-elf/pr20828-a.sd: Likewise. + * testsuite/ld-elf/pr20828-b.sd: Likewise. + * testsuite/ld-elf/pr20828-c.sd: Likewise. + 2017-01-23 Maciej W. Rozycki PR ld/20828 diff --git a/ld/testsuite/ld-elf/pr20828-a.sd b/ld/testsuite/ld-elf/pr20828-a.sd index c24e5ad583..a24eedba65 100644 --- a/ld/testsuite/ld-elf/pr20828-a.sd +++ b/ld/testsuite/ld-elf/pr20828-a.sd @@ -1,9 +1,9 @@ -# Make sure `_fdata' is global rather than local in the dynamic symbol table, +# Make sure `fdata' is global rather than local in the dynamic symbol table, # e.g.: # Num: Value Size Type Bind Vis Ndx Name -# 1: 00000000 0 NOTYPE GLOBAL DEFAULT 1 _fdata +# 1: 00000000 0 NOTYPE GLOBAL DEFAULT 1 fdata # vs: -# 1: 00000000 0 NOTYPE LOCAL DEFAULT 1 _fdata +# 1: 00000000 0 NOTYPE LOCAL DEFAULT 1 fdata #... - *[0-9]+: +[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +_fdata + *[0-9]+: +[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +fdata #pass diff --git a/ld/testsuite/ld-elf/pr20828-b.sd b/ld/testsuite/ld-elf/pr20828-b.sd index c4b239b3fa..95551bbf1b 100644 --- a/ld/testsuite/ld-elf/pr20828-b.sd +++ b/ld/testsuite/ld-elf/pr20828-b.sd @@ -1,9 +1,9 @@ -# Make sure `_edata' is global rather than local in the dynamic symbol table, +# Make sure `edata' is global rather than local in the dynamic symbol table, # e.g.: # Num: Value Size Type Bind Vis Ndx Name -# 1: 00000000 0 NOTYPE GLOBAL DEFAULT 1 _edata +# 1: 00000000 0 NOTYPE GLOBAL DEFAULT 1 edata # vs: -# 1: 00000000 0 NOTYPE LOCAL DEFAULT 1 _edata +# 1: 00000000 0 NOTYPE LOCAL DEFAULT 1 edata #... - *[0-9]+: +[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +_edata + *[0-9]+: +[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +edata #pass diff --git a/ld/testsuite/ld-elf/pr20828-c.sd b/ld/testsuite/ld-elf/pr20828-c.sd index 8089c486b9..5501e19418 100644 --- a/ld/testsuite/ld-elf/pr20828-c.sd +++ b/ld/testsuite/ld-elf/pr20828-c.sd @@ -1,7 +1,7 @@ -# Make sure no `_fdata' is present in the dynamic symbol table, e.g.: +# Make sure no `fdata' is present in the dynamic symbol table, e.g.: # Num: Value Size Type Bind Vis Ndx Name -# 1: 00000000 0 NOTYPE LOCAL DEFAULT 1 _fdata +# 1: 00000000 0 NOTYPE LOCAL DEFAULT 1 fdata #failif #... -.+ +_fdata +.+ +fdata #pass diff --git a/ld/testsuite/ld-elf/pr20828.ld b/ld/testsuite/ld-elf/pr20828.ld index 9ca19436bb..11aea82f87 100644 --- a/ld/testsuite/ld-elf/pr20828.ld +++ b/ld/testsuite/ld-elf/pr20828.ld @@ -2,9 +2,9 @@ SECTIONS { .data : { - _fdata = .; + fdata = .; *(.data) - _edata = .; + edata = .; } .dynamic : { *(.dynamic) } .hash : { *(.hash) } diff --git a/ld/testsuite/ld-elf/pr20828.ver b/ld/testsuite/ld-elf/pr20828.ver index 7d0fa22814..bbc0ebde47 100644 --- a/ld/testsuite/ld-elf/pr20828.ver +++ b/ld/testsuite/ld-elf/pr20828.ver @@ -1 +1 @@ -{ global: _edata; local: *; }; +{ global: edata; local: *; };