diff options
Diffstat (limited to 'ld/emultempl/beos.em')
-rw-r--r-- | ld/emultempl/beos.em | 102 |
1 files changed, 54 insertions, 48 deletions
diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em index 9a67ff8..ff447bd 100644 --- a/ld/emultempl/beos.em +++ b/ld/emultempl/beos.em @@ -209,7 +209,7 @@ set_pe_subsystem (void) set_pe_name ("__minor_subsystem_version__", strtoul (end + 1, &end, 0)); if (*end != '\0') - einfo ("%P: warning: bad version number in -subsystem option\n"); + einfo (_("%P: warning: bad version number in -subsystem option\n")); } for (i = 0; v[i].name; i++) @@ -226,7 +226,7 @@ set_pe_subsystem (void) return; } } - einfo ("%P%F: invalid subsystem type %s\n", optarg); + einfo (_("%P%F: invalid subsystem type %s\n"), optarg); } @@ -237,7 +237,7 @@ set_pe_value (char *name) set_pe_name (name, strtoul (optarg, &end, 0)); if (end == optarg) { - einfo ("%P%F: invalid hex number for PE parameter '%s'\n", optarg); + einfo (_("%P%F: invalid hex number for PE parameter '%s'\n"), optarg); } optarg = end; @@ -254,7 +254,7 @@ set_pe_stack_heap (char *resname, char *comname) } else if (*optarg) { - einfo ("%P%F: strange hex info for PE parameter '%s'\n", optarg); + einfo (_("%P%F: strange hex info for PE parameter '%s'\n"), optarg); } } @@ -366,7 +366,7 @@ gld_${EMULATION_NAME}_set_symbols (void) if (pe.FileAlignment > pe.SectionAlignment) { - einfo ("%P: warning, file alignment > section alignment.\n"); + einfo (_("%P: warning, file alignment > section alignment.\n")); } } @@ -380,7 +380,7 @@ gld_${EMULATION_NAME}_after_open (void) including an internal BFD header. */ if (!coff_data(link_info.output_bfd)->pe) { - einfo ("%F%P: PE operations on non PE file.\n"); + einfo (_("%F%P: PE operations on non PE file.\n")); } pe_data(link_info.output_bfd)->pe_opthdr = pe; @@ -412,37 +412,43 @@ sort_by_file_name (const void *a, const void *b) and HNT properly. if no reloc this one is import by ordinal so we have to sort by section contents */ - if ( ((*ra)->input_section.section->reloc_count + (*rb)->input_section.section->reloc_count) ) + if ((*ra)->input_section.section->reloc_count + + (*rb)->input_section.section->reloc_count) { - i = (((*ra)->input_section.section->reloc_count > - (*rb)->input_section.section->reloc_count) ? -1 : 0); - if ( i != 0) - return i; + i = ((*ra)->input_section.section->reloc_count + > (*rb)->input_section.section->reloc_count) ? -1 : 0; + if (i != 0) + return i; - return (((*ra)->input_section.section->reloc_count > - (*rb)->input_section.section->reloc_count) ? 0 : 1); + return ((*ra)->input_section.section->reloc_count + > (*rb)->input_section.section->reloc_count) ? 0 : 1; } else { - if ( (strcmp( (*ra)->input_section.section->name, ".idata$6") == 0) ) - return 0; /* don't sort .idata$6 or .idata$7 FIXME dlltool eliminate .idata$7 */ - - if (! bfd_get_section_contents ((*ra)->input_section.section->owner, - (*ra)->input_section.section, &a_sec, (file_ptr) 0, (bfd_size_type)sizeof(a_sec))) - einfo ("%F%B: Can't read contents of section .idata: %E\n", - (*ra)->input_section.section->owner); - - if (! bfd_get_section_contents ((*rb)->input_section.section->owner, - (*rb)->input_section.section, &b_sec, (file_ptr) 0, (bfd_size_type)sizeof(b_sec) )) - einfo ("%F%B: Can't read contents of section .idata: %E\n", - (*rb)->input_section.section->owner); - - i = ((a_sec < b_sec) ? -1 : 0); - if ( i != 0) - return i; - return ((a_sec < b_sec) ? 0 : 1); - } -return 0; + /* don't sort .idata$6 or .idata$7 FIXME dlltool eliminate .idata$7 */ + if ((strcmp ((*ra)->input_section.section->name, ".idata$6") == 0)) + return 0; + + if (!bfd_get_section_contents ((*ra)->input_section.section->owner, + (*ra)->input_section.section, &a_sec, + (file_ptr) 0, + (bfd_size_type) sizeof(a_sec))) + einfo (_("%F%B: Can't read contents of section .idata: %E\n"), + (*ra)->input_section.section->owner); + + if (!bfd_get_section_contents ((*rb)->input_section.section->owner, + (*rb)->input_section.section, &b_sec, + (file_ptr) 0, + (bfd_size_type) sizeof(b_sec))) + einfo (_("%F%B: Can't read contents of section .idata: %E\n"), + (*rb)->input_section.section->owner); + + i = a_sec < b_sec ? -1 : 0; + if (i != 0) + return i; + return a_sec < b_sec ? 0 : 1; + } + return 0; } static int @@ -459,8 +465,8 @@ sort_by_section_name (const void *a, const void *b) if (i != 0) { if ((CONST_STRNEQ ((*ra)->input_section.section->name, ".stab")) - && (! CONST_STRNEQ ((*rb)->input_section.section->name, ".stab"))) - return 1; + && (! CONST_STRNEQ ((*rb)->input_section.section->name, ".stab"))) + return 1; } return i; } @@ -609,12 +615,12 @@ gld_${EMULATION_NAME}_before_allocation (void) /* Here we rummage through the found bfds to collect toc information */ { LANG_FOR_EACH_INPUT_STATEMENT (is) - { - if (!ppc_process_before_allocation(is->the_bfd, &link_info)) - { - einfo("Errors encountered processing file %s\n", is->filename); - } - } + { + if (!ppc_process_before_allocation(is->the_bfd, &link_info)) + { + einfo (_("Errors encountered processing file %s\n"), is->filename); + } + } } /* We have seen it all. Allocate it, and carry on */ @@ -629,12 +635,12 @@ gld_${EMULATION_NAME}_before_allocation (void) option? krk@cygnus.com */ { LANG_FOR_EACH_INPUT_STATEMENT (is) - { - if (!arm_process_before_allocation (is->the_bfd, & link_info)) - { - einfo ("Errors encountered processing file %s", is->filename); - } - } + { + if (!arm_process_before_allocation (is->the_bfd, & link_info)) + { + einfo (_("Errors encountered processing file %s"), is->filename); + } + } } /* We have seen it all. Allocate it, and carry on */ @@ -680,7 +686,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s, /* Everything from the '\$' on gets deleted so don't allow '\$' as the first character. */ if (*secname == '\$') - einfo ("%P%F: section %s has '\$' as first character\n", secname); + einfo (_("%P%F: section %s has '\$' as first character\n"), secname); if (strchr (secname + 1, '\$') == NULL) return NULL; @@ -712,7 +718,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s, } ps[0] = 0; if (l == NULL) - einfo ("%P%F: *(%s\$) missing from linker script\n", output_secname); + einfo (_("%P%F: *(%s\$) missing from linker script\n"), output_secname); /* Link the input section in and we're done for now. The sections still have to be sorted, but that has to wait until |