diff --git a/ld/ChangeLog b/ld/ChangeLog index 4df91b7a20..0f36d6c270 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2019-04-10 Alan Modra + + * emultempl/cskyelf.em (csk_elf_before_parse): New function, + setting use_branch_stub false for linux. + (csky_elf_create_output_section_statements): Do emit this + function and all others in the file for linux, plus the branch + option control. Disable branch stubs when non-ELF. + 2019-04-10 Alan Modra * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em. diff --git a/ld/emultempl/cskyelf.em b/ld/emultempl/cskyelf.em index 690bb49222..3651bb244d 100644 --- a/ld/emultempl/cskyelf.em +++ b/ld/emultempl/cskyelf.em @@ -116,25 +116,32 @@ EOF case ${target} in csky-*-linux-*) fragment <the_bfd = bfd_create ("linker stubs", link_info.output_bfd); @@ -150,11 +157,7 @@ csky_elf_create_output_section_statements (void) stub_file->the_bfd->flags |= BFD_LINKER_CREATED; ldlang_add_file (stub_file); } -EOF - ;; -esac -fragment <