From 6fa3860b3b4e2e963d19b54d5f215416f998d294 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Thu, 10 Feb 2005 14:09:43 +0000 Subject: 2005-02-10 Paul Brook * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal symbols local. (elf_link_renumber_hash_table_dynsyms): Ignore local symbols. (elf_link_renumber_local_hash_table_dynsyms): New function. (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols. ld/testsuite/ * ld-elfvsb/hidden2.s: New file * ld-elfvsb/hidden2.d: New file * ld-elfvsb/hidden2.ld: New file --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elfvsb/hidden2.d | 9 +++++++++ ld/testsuite/ld-elfvsb/hidden2.ld | 6 ++++++ ld/testsuite/ld-elfvsb/hidden2.s | 4 ++++ 4 files changed, 25 insertions(+) create mode 100644 ld/testsuite/ld-elfvsb/hidden2.d create mode 100644 ld/testsuite/ld-elfvsb/hidden2.ld create mode 100644 ld/testsuite/ld-elfvsb/hidden2.s (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index cfc2192..bb0ed55 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-02-10 Paul Brook + + * ld-elfvsb/hidden2.s: New file + * ld-elfvsb/hidden2.d: New file + * ld-elfvsb/hidden2.ld: New file + 2005-02-07 Alexandre Oliva * ld-frv/fdpic-shared-8-fail.d: Tweak error messages. diff --git a/ld/testsuite/ld-elfvsb/hidden2.d b/ld/testsuite/ld-elfvsb/hidden2.d new file mode 100644 index 0000000..25cfa4d --- /dev/null +++ b/ld/testsuite/ld-elfvsb/hidden2.d @@ -0,0 +1,9 @@ +#source: hidden2.s +#ld: -shared -T hidden2.ld +#readelf: -Ds +# It is also ok to remove this symbol, but we currently make it local. + +Symbol table for image: +#... +[ ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0 NOTYPE LOCAL HIDDEN +ABS foo +#pass diff --git a/ld/testsuite/ld-elfvsb/hidden2.ld b/ld/testsuite/ld-elfvsb/hidden2.ld new file mode 100644 index 0000000..1e4a2b0 --- /dev/null +++ b/ld/testsuite/ld-elfvsb/hidden2.ld @@ -0,0 +1,6 @@ +SECTIONS +{ + . = 0x1000; + PROVIDE (foo = .); + .data : { *(.data) } +} diff --git a/ld/testsuite/ld-elfvsb/hidden2.s b/ld/testsuite/ld-elfvsb/hidden2.s new file mode 100644 index 0000000..66af070 --- /dev/null +++ b/ld/testsuite/ld-elfvsb/hidden2.s @@ -0,0 +1,4 @@ + .data + .hidden foo + .global foo + .word foo -- cgit v1.1