diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-01-10 20:08:03 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-01-10 20:08:03 +0000 |
commit | e4492aa0d87eda6a9442625b59f713bcf4f08922 (patch) | |
tree | dedd3225b451ed177cbb286c27b4adbf51768c59 /ld/emultempl | |
parent | 68ffbac672c0d7f2566e715f878e65ed9b44795f (diff) | |
download | gdb-e4492aa0d87eda6a9442625b59f713bcf4f08922.zip gdb-e4492aa0d87eda6a9442625b59f713bcf4f08922.tar.gz gdb-e4492aa0d87eda6a9442625b59f713bcf4f08922.tar.bz2 |
Remove trailing white spaces in ld
* deffilep.y: Remove trailing white spaces.
* elf-hints-local.h: Likewise.
* ldexp.c: Likewise.
* ldlang.h: Likewise.
* ldmisc.c: Likewise.
* ldwrite.c: Likewise.
* pe-dll.c: Likewise.
* emulparams/criself.sh: Likewise.
* emulparams/crislinux.sh: Likewise.
* emulparams/elf32_tic6x_le.sh: Likewise.
* emulparams/elf32bmipn32-defs.sh: Likewise.
* emulparams/elf32mb_linux.sh: Likewise.
* emulparams/elf32mep.sh: Likewise.
* emulparams/elf32microblaze.sh: Likewise.
* emulparams/elf32ppc.sh: Likewise.
* emulparams/elf64_s390.sh: Likewise.
* emulparams/elf64alpha.sh: Likewise.
* emulparams/elf_s390.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.
* emulparams/tic80coff.sh: Likewise.
* emultempl/aix.em: Likewise.
* emultempl/avrelf.em: Likewise.
* emultempl/cr16elf.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/spuelf.em: Likewise.
* emultempl/tic6xdsbt.em: Likewise.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/aix.em | 2 | ||||
-rw-r--r-- | ld/emultempl/avrelf.em | 2 | ||||
-rw-r--r-- | ld/emultempl/cr16elf.em | 2 | ||||
-rw-r--r-- | ld/emultempl/pe.em | 4 | ||||
-rw-r--r-- | ld/emultempl/pep.em | 6 | ||||
-rw-r--r-- | ld/emultempl/spuelf.em | 4 | ||||
-rw-r--r-- | ld/emultempl/tic6xdsbt.em | 20 |
7 files changed, 20 insertions, 20 deletions
diff --git a/ld/emultempl/aix.em b/ld/emultempl/aix.em index 3f6a097..b48228a 100644 --- a/ld/emultempl/aix.em +++ b/ld/emultempl/aix.em @@ -361,7 +361,7 @@ read_file_list (const char *filename) /* Replace end of line by nul. */ if (*e != '\0') *e++ = '\0'; - + if (b != e) lang_add_input_file (b, lang_input_file_is_search_file_enum, NULL); b = e; diff --git a/ld/emultempl/avrelf.em b/ld/emultempl/avrelf.em index bfb9d5c..e0d6357 100644 --- a/ld/emultempl/avrelf.em +++ b/ld/emultempl/avrelf.em @@ -72,7 +72,7 @@ avr_elf_${EMULATION_NAME}_before_allocation (void) gld${EMULATION_NAME}_before_allocation (); /* We only need stubs for avr6, avrxmega6, and avrxmega7. */ - if (strcmp ("${EMULATION_NAME}","avr6") + if (strcmp ("${EMULATION_NAME}","avr6") && strcmp ("${EMULATION_NAME}","avrxmega6") && strcmp ("${EMULATION_NAME}","avrxmega7") ) avr_no_stubs = TRUE; diff --git a/ld/emultempl/cr16elf.em b/ld/emultempl/cr16elf.em index 9850bda..f76b95e 100644 --- a/ld/emultempl/cr16elf.em +++ b/ld/emultempl/cr16elf.em @@ -87,7 +87,7 @@ cr16_elf_after_open (void) /* Double check that all other data sections are empty, as is required for embedded PIC code. */ - bfd_map_over_sections (abfd, check_sections, datasec); + bfd_map_over_sections (abfd, check_sections, datasec); } } } diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index a565eb7..68049a7 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -261,7 +261,7 @@ fragment <<EOF #define OPTION_DYNAMIC_BASE (OPTION_DISABLE_LONG_SECTION_NAMES + 1) #define OPTION_FORCE_INTEGRITY (OPTION_DYNAMIC_BASE + 1) #define OPTION_NX_COMPAT (OPTION_FORCE_INTEGRITY + 1) -#define OPTION_NO_ISOLATION (OPTION_NX_COMPAT + 1) +#define OPTION_NO_ISOLATION (OPTION_NX_COMPAT + 1) #define OPTION_NO_SEH (OPTION_NO_ISOLATION + 1) #define OPTION_NO_BIND (OPTION_NO_SEH + 1) #define OPTION_WDM_DRIVER (OPTION_NO_BIND + 1) @@ -1204,7 +1204,7 @@ pr_sym (struct bfd_hash_entry *h, void *inf ATTRIBUTE_UNUSED) } #endif /* DLL_SUPPORT */ -static void +static void debug_section_p (bfd *abfd ATTRIBUTE_UNUSED, asection *sect, void *obj) { int *found = (int *) obj; diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em index fc3cdc3..12b7598 100644 --- a/ld/emultempl/pep.em +++ b/ld/emultempl/pep.em @@ -773,7 +773,7 @@ gld${EMULATION_NAME}_handle_option (int optc) /* Set DLLCharacteristics bits */ set_pep_name ("__dll_characteristics__", pe_dll_characteristics); - + return TRUE; } @@ -892,7 +892,7 @@ gld_${EMULATION_NAME}_after_parse (void) "targets, did you mean --export-all-symbols?\n")); set_entry_point (); - + after_parse_default (); } @@ -1136,7 +1136,7 @@ pr_sym (struct bfd_hash_entry *h, void *inf ATTRIBUTE_UNUSED) } #endif /* DLL_SUPPORT */ -static void +static void debug_section_p (bfd *abfd ATTRIBUTE_UNUSED, asection *sect, void *obj) { int *found = (int *) obj; diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em index 1b35612..e14fa26 100644 --- a/ld/emultempl/spuelf.em +++ b/ld/emultempl/spuelf.em @@ -43,7 +43,7 @@ static struct spu_elf_params params = 1, 0, 16, 0, 0, 2000 }; -static unsigned int no_overlays = 0; +static unsigned int no_overlays = 0; static unsigned int num_lines_set = 0; static unsigned int line_size_set = 0; static char *auto_overlay_file = 0; @@ -551,7 +551,7 @@ embedded_spu_file (lang_input_statement_type *entry, const char *flags) pex_return = pex_one (PEX_SEARCH | PEX_LAST, cmd[0], (char *const *) cmd, cmd[0], NULL, NULL, &status, &errno); } - if (NULL != pex_return) { + if (NULL != pex_return) { perror (pex_return); _exit (127); } diff --git a/ld/emultempl/tic6xdsbt.em b/ld/emultempl/tic6xdsbt.em index 87d3b35..01923b3 100644 --- a/ld/emultempl/tic6xdsbt.em +++ b/ld/emultempl/tic6xdsbt.em @@ -75,19 +75,19 @@ compare_output_sec_vma (const void *a, const void *b) asection *asec = *(asection **) a, *bsec = *(asection **) b; asection *aout = asec->output_section, *bout = bsec->output_section; bfd_vma avma, bvma; - + /* If there's no output section for some reason, compare equal. */ if (!aout || !bout) return 0; - + avma = aout->vma + asec->output_offset; bvma = bout->vma + bsec->output_offset; - + if (avma > bvma) return 1; else if (avma < bvma) return -1; - + return 0; } @@ -109,10 +109,10 @@ gld${EMULATION_NAME}_after_allocation (void) { bfd *abfd = is->the_bfd; asection *sec; - + if ((abfd->flags & (EXEC_P | DYNAMIC)) != 0) continue; - + for (sec = abfd->sections; sec != NULL; sec = sec->next) { asection *out_sec = sec->output_section; @@ -128,7 +128,7 @@ gld${EMULATION_NAME}_after_allocation (void) if (sec_count == list_size) { list_size *= 2; - sec_list = (asection **) + sec_list = (asection **) xrealloc (sec_list, list_size * sizeof (asection *)); } @@ -136,13 +136,13 @@ gld${EMULATION_NAME}_after_allocation (void) } } } - + qsort (sec_list, sec_count, sizeof (asection *), &compare_output_sec_vma); - + if (elf32_tic6x_fix_exidx_coverage (sec_list, sec_count, &link_info, merge_exidx_entries)) layout_changed = 1; - + free (sec_list); } |