]> Git Repo - binutils.git/blobdiff - ld/emultempl/avrelf.em
Use bool in ld
[binutils.git] / ld / emultempl / avrelf.em
index 56256a13bb3ee0823878e72520c0ed66a082afe1..eb01c8f2e0ac2c9b7dd6425b91be4e226904d68b 100644 (file)
@@ -39,10 +39,10 @@ static asection *avr_stub_section;
 /* Variables set by the command-line parameters and transferred
    to the bfd without use of global shared variables.  */
 
-static bfd_boolean avr_no_stubs = FALSE;
-static bfd_boolean avr_debug_relax = FALSE;
-static bfd_boolean avr_debug_stubs = FALSE;
-static bfd_boolean avr_replace_call_ret_sequences = TRUE;
+static bool avr_no_stubs = false;
+static bool avr_debug_relax = false;
+static bool avr_debug_stubs = false;
+static bool avr_replace_call_ret_sequences = true;
 static bfd_vma avr_pc_wrap_around = 0x10000000;
 
 /* Transfers information to the bfd frontend.  */
@@ -73,7 +73,7 @@ avr_elf_${EMULATION_NAME}_before_allocation (void)
 
   if (bfd_get_flavour (link_info.output_bfd) != bfd_target_elf_flavour)
     {
-      avr_no_stubs = TRUE;
+      avr_no_stubs = true;
       return;
     }
 
@@ -81,14 +81,14 @@ avr_elf_${EMULATION_NAME}_before_allocation (void)
   if (strcmp ("${EMULATION_NAME}", "avr6") != 0
       && strcmp ("${EMULATION_NAME}", "avrxmega6") != 0
       && strcmp ("${EMULATION_NAME}", "avrxmega7") != 0)
-    avr_no_stubs = TRUE;
+    avr_no_stubs = true;
 
   avr_elf_set_global_bfd_parameters ();
 
   /* If generating a relocatable output file, then
      we don't  have to generate the trampolines.  */
   if (bfd_link_relocatable (&link_info))
-    avr_no_stubs = TRUE;
+    avr_no_stubs = true;
 
   if (avr_no_stubs)
     return;
@@ -102,7 +102,7 @@ avr_elf_${EMULATION_NAME}_before_allocation (void)
     return;
 
   /* Call into the BFD backend to do the real "stub"-work.  */
-  if (! elf32_avr_size_stubs (link_info.output_bfd, &link_info, TRUE))
+  if (! elf32_avr_size_stubs (link_info.output_bfd, &link_info, true))
     einfo (_("%X%P: can not size stub section: %E\n"));
 }
 
@@ -165,7 +165,7 @@ avr_elf_after_allocation (void)
     {
       /* If relaxing, elf32_avr_size_stubs will be called from
         elf32_avr_relax_section.  */
-      if (!elf32_avr_size_stubs (link_info.output_bfd, &link_info, TRUE))
+      if (!elf32_avr_size_stubs (link_info.output_bfd, &link_info, true))
        einfo (_("%X%P: can not size stub section: %E\n"));
     }
 
@@ -184,7 +184,7 @@ avr_elf_before_parse (void)
 {
   /* Don't create a demand-paged executable, since this feature isn't
      meaningful in AVR. */
-  config.magic_demand_paged = FALSE;
+  config.magic_demand_paged = false;
 
   gld${EMULATION_NAME}_before_parse ();
 }
@@ -193,11 +193,11 @@ static void
 avr_finish (void)
 {
   bfd *abfd;
-  bfd_boolean avr_link_relax;
+  bool avr_link_relax;
 
   if (bfd_link_relocatable (&link_info))
     {
-      avr_link_relax = TRUE;
+      avr_link_relax = true;
       for (abfd = link_info.input_bfds; abfd != NULL; abfd = abfd->link.next)
        {
          /* Don't let the linker stubs prevent the final object being
@@ -206,7 +206,7 @@ avr_finish (void)
               & EF_AVR_LINKRELAX_PREPARED) == 0
              && abfd != stub_file->the_bfd)
            {
-             avr_link_relax = FALSE;
+             avr_link_relax = false;
              break;
            }
        }
@@ -296,26 +296,26 @@ PARSE_AND_LIST_ARGS_CASES='
        else if ((!strcmp (optarg,"64k")) || (!strcmp (optarg,"64K")))
          avr_pc_wrap_around = 0x10000;
        else
-         return FALSE;
+         return false;
       }
       break;
 
     case OPTION_DEBUG_STUBS:
-      avr_debug_stubs = TRUE;
+      avr_debug_stubs = true;
       break;
 
     case OPTION_DEBUG_RELAX:
-      avr_debug_relax = TRUE;
+      avr_debug_relax = true;
       break;
 
     case OPTION_NO_STUBS:
-      avr_no_stubs = TRUE;
+      avr_no_stubs = true;
       break;
 
     case OPTION_NO_CALL_RET_REPLACEMENT:
       {
        /* This variable is defined in the bfd library.  */
-       avr_replace_call_ret_sequences = FALSE;
+       avr_replace_call_ret_sequences = false;
       }
       break;
 '
This page took 0.029029 seconds and 4 git commands to generate.