diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/emultempl/ppc64elf.em | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 9905b0a..61f5081 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2010-03-14 Alan Modra <amodra@gmail.com> + + PR ld/11378 + * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call + ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs. + 2010-03-11 George Gensure <werkt0@gmail.com> PR ld/11367 diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index 2e6c805..0d9dba9 100644 --- a/ld/emultempl/ppc64elf.em +++ b/ld/emultempl/ppc64elf.em @@ -346,6 +346,9 @@ gld${EMULATION_NAME}_after_allocation (void) lang_for_each_statement (build_section_lists); + if (!ppc64_elf_check_init_fini (&link_info)) + einfo ("%P: .init/.fini fragments use differing TOC pointers\n"); + /* Call into the BFD backend to do the real work. */ if (!ppc64_elf_size_stubs (&link_info, group_size)) einfo ("%X%P: can not size stub section: %E\n"); |