diff options
Diffstat (limited to 'ld/emultempl/m68kcoff.em')
-rw-r--r-- | ld/emultempl/m68kcoff.em | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ld/emultempl/m68kcoff.em b/ld/emultempl/m68kcoff.em index e29ce9e5d78..d547ad9d482 100644 --- a/ld/emultempl/m68kcoff.em +++ b/ld/emultempl/m68kcoff.em @@ -64,7 +64,7 @@ gld${EMULATION_NAME}_after_open (void) after_open_default (); if (! command_line.embedded_relocs - || link_info.relocatable) + || bfd_link_relocatable (&link_info)) return; for (abfd = link_info.input_bfds; abfd != NULL; abfd = abfd->link.next) @@ -130,7 +130,7 @@ gld${EMULATION_NAME}_after_allocation (void) bfd *abfd; if (! command_line.embedded_relocs - || link_info.relocatable) + || bfd_link_relocatable (&link_info)) return; for (abfd = link_info.input_bfds; abfd != NULL; abfd = abfd->link.next) @@ -175,11 +175,11 @@ fragment <<EOF { *isfile = 0; - if (link_info.relocatable && config.build_constructors) + if (bfd_link_relocatable (&link_info) && config.build_constructors) return EOF sed $sc ldscripts/${EMULATION_NAME}.xu >> e${EMULATION_NAME}.c -echo ' ; else if (link_info.relocatable) return' >> e${EMULATION_NAME}.c +echo ' ; else if (bfd_link_relocatable (&link_info)) return' >> e${EMULATION_NAME}.c sed $sc ldscripts/${EMULATION_NAME}.xr >> e${EMULATION_NAME}.c echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME}.c sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c @@ -196,9 +196,9 @@ fragment <<EOF { *isfile = 1; - if (link_info.relocatable && config.build_constructors) + if (bfd_link_relocatable (&link_info) && config.build_constructors) return "ldscripts/${EMULATION_NAME}.xu"; - else if (link_info.relocatable) + else if (bfd_link_relocatable (&link_info)) return "ldscripts/${EMULATION_NAME}.xr"; else if (!config.text_read_only) return "ldscripts/${EMULATION_NAME}.xbn"; |