diff --git a/bfd/config.bfd b/bfd/config.bfd index dcecae839bf..c923e0a7742 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -840,12 +840,10 @@ case "${targ}" in targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec" ;; - m68k-atari-mintelf) + m68k-*-mintelf) targ_defvec=m68k_elf32_vec targ_selvecs="m68k_elf32_vec m68k_elf32_atariprg_vec" - targ_underscore=yes ;; - m68*-*-*) targ_defvec=m68k_elf32_vec ;; diff --git a/bfd/elf32-atariprg.c b/bfd/elf32-atariprg.c index e4f82d9b2e5..f5bc526cf34 100644 --- a/bfd/elf32-atariprg.c +++ b/bfd/elf32-atariprg.c @@ -450,7 +450,7 @@ m68k_elf32_atariprg_final_link (bfd *abfd, struct bfd_link_info *info) TRACE ("m68k_elf32_atariprg_final_link END %s %s\n", abfd->xvec->name, abfd->filename); /* Remember the address of the stack size variable. */ - h = (struct elf_link_hash_entry *) bfd_hash_lookup (&info->hash->table, "__stksize", false, false); + h = (struct elf_link_hash_entry *) bfd_hash_lookup (&info->hash->table, "_stksize", false, false); if (h != NULL) { asection *input_sec; @@ -685,7 +685,7 @@ write_prgelf_header (bfd *abfd) if (myinfo->stkpos == 0) { - _bfd_error_handler ("%pB: unable to determine the __stksize position", + _bfd_error_handler ("%pB: unable to determine the _stksize position", abfd); bfd_set_error (bfd_error_invalid_operation); return false; diff --git a/ld/emultempl/m68kmintelf.em b/ld/emultempl/m68kmintelf.em index fa25c8939d5..a93b88512c9 100644 --- a/ld/emultempl/m68kmintelf.em +++ b/ld/emultempl/m68kmintelf.em @@ -56,10 +56,10 @@ m68kmintelf_before_parse (void) /* Then add our own linker initialization here. */ /* Standard default entry point is the "start" symbol. But the MiNTLib entry - point is named "__start". We could change the default here, but that would + point is named "_start". We could change the default here, but that would be very non-standard. Instead, I prefer to add a custom ENTRY() in the linker script. */ - /*lang_default_entry ("__start");*/ + /*lang_default_entry ("_start");*/ } /* This method is called after assigning values from the script. */ diff --git a/ld/scripttempl/m68kmintelf.sc b/ld/scripttempl/m68kmintelf.sc index d4f2e35e2f9..bc07ad951f5 100644 --- a/ld/scripttempl/m68kmintelf.sc +++ b/ld/scripttempl/m68kmintelf.sc @@ -10,7 +10,7 @@ cat <