diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:39:51 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc (patch) | |
tree | 38d5b486b39b163f1581abf67889d191a8e5cc9f /ld/emulparams | |
parent | 015dc7e1f8a971692a910e6cfc64faf9216e75c3 (diff) | |
download | gdb-f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc.zip gdb-f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc.tar.gz gdb-f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc.tar.bz2 |
Use bool in ld
* sysdep.h (POISON_BFD_BOOLEAN): Define.
* configure.ac (elf_list_options, elf_shlib_list_options=false),
(elf_plt_unwind_list_options=false): Replace FALSE with false,
and TRUE with true.
* emulparams/call_nop.sh, * emulparams/cet.sh,
* emulparams/dynamic_undefined_weak.sh,
* emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
* emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
* emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
* emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
* emulparams/reloc_overflow.sh, * emulparams/static.sh,
* emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
* emultempl/aix.em, * emultempl/alphaelf.em,
* emultempl/armcoff.em, * emultempl/armelf.em,
* emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
* emultempl/cr16elf.em, * emultempl/crxelf.em,
* emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
* emultempl/hppaelf.em, * emultempl/linux.em,
* emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
* emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
* emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
* emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
* emultempl/pep.em, * emultempl/ppc32elf.em,
* emultempl/ppc64elf.em, * emultempl/rxelf.em,
* emultempl/rxlinux.em, * emultempl/scoreelf.em,
* emultempl/solaris2.em, * emultempl/spuelf.em,
* emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
* emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
* ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
* ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
* ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
* ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
* ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
* pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
* testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
bfd_boolean with bool, FALSE with false, and TRUE with true.
* configure: Regenerate.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/call_nop.sh | 8 | ||||
-rw-r--r-- | ld/emulparams/cet.sh | 6 | ||||
-rw-r--r-- | ld/emulparams/dynamic_undefined_weak.sh | 4 | ||||
-rw-r--r-- | ld/emulparams/elf32b4300.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/elf32lm32.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/elf32lr5900.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/elf32lr5900n32.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/elf32visium.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/elf_x86_64.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/extern_protected_data.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/plt_unwind.sh | 4 | ||||
-rw-r--r-- | ld/emulparams/reloc_overflow.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/static.sh | 8 | ||||
-rw-r--r-- | ld/emulparams/x86-64-lam.sh | 4 |
14 files changed, 25 insertions, 25 deletions
diff --git a/ld/emulparams/call_nop.sh b/ld/emulparams/call_nop.sh index b1e2e73..2c3c305 100644 --- a/ld/emulparams/call_nop.sh +++ b/ld/emulparams/call_nop.sh @@ -7,12 +7,12 @@ PARSE_AND_LIST_ARGS_CASE_Z_CALL_NOP=' { if (strcmp (optarg + 9, "prefix-addr") == 0) { - params.call_nop_as_suffix = FALSE; + params.call_nop_as_suffix = false; params.call_nop_byte = 0x67; } else if (strcmp (optarg + 9, "suffix-nop") == 0) { - params.call_nop_as_suffix = TRUE; + params.call_nop_as_suffix = true; params.call_nop_byte = 0x90; } else if (strncmp (optarg + 9, "prefix-", 7) == 0) @@ -22,7 +22,7 @@ PARSE_AND_LIST_ARGS_CASE_Z_CALL_NOP=' if (*end) einfo (_("%F%P: invalid number for -z call-nop=prefix-: %s\n"), optarg + 16); - params.call_nop_as_suffix = FALSE; + params.call_nop_as_suffix = false; } else if (strncmp (optarg + 9, "suffix-", 7) == 0) { @@ -31,7 +31,7 @@ PARSE_AND_LIST_ARGS_CASE_Z_CALL_NOP=' if (*end) einfo (_("%F%P: invalid number for -z call-nop=suffix-: %s\n"), optarg + 16); - params.call_nop_as_suffix = TRUE; + params.call_nop_as_suffix = true; } else einfo (_("%F%P: unsupported option: -z %s\n"), optarg); diff --git a/ld/emulparams/cet.sh b/ld/emulparams/cet.sh index d9e81df..2c62799 100644 --- a/ld/emulparams/cet.sh +++ b/ld/emulparams/cet.sh @@ -11,11 +11,11 @@ PARSE_AND_LIST_OPTIONS_CET=' ' PARSE_AND_LIST_ARGS_CASE_Z_CET=' else if (strcmp (optarg, "ibtplt") == 0) - params.ibtplt = TRUE; + params.ibtplt = true; else if (strcmp (optarg, "ibt") == 0) - params.ibt = TRUE; + params.ibt = true; else if (strcmp (optarg, "shstk") == 0) - params.shstk = TRUE; + params.shstk = true; else if (strncmp (optarg, "cet-report=", 11) == 0) { if (strcmp (optarg + 11, "none") == 0) diff --git a/ld/emulparams/dynamic_undefined_weak.sh b/ld/emulparams/dynamic_undefined_weak.sh index a20bbd4..21393d4 100644 --- a/ld/emulparams/dynamic_undefined_weak.sh +++ b/ld/emulparams/dynamic_undefined_weak.sh @@ -6,9 +6,9 @@ PARSE_AND_LIST_OPTIONS_DYNAMIC_UNDEFINED_WEAK=' PARSE_AND_LIST_ARGS_CASE_Z_DYNAMIC_UNDEFINED_WEAK=' else if (strcmp (optarg, "dynamic-undefined-weak") == 0) - link_info.dynamic_undefined_weak = TRUE; + link_info.dynamic_undefined_weak = true; else if (strcmp (optarg, "nodynamic-undefined-weak") == 0) - link_info.dynamic_undefined_weak = FALSE; + link_info.dynamic_undefined_weak = false; ' PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_DYNAMIC_UNDEFINED_WEAK" diff --git a/ld/emulparams/elf32b4300.sh b/ld/emulparams/elf32b4300.sh index f351533..4b1921c 100644 --- a/ld/emulparams/elf32b4300.sh +++ b/ld/emulparams/elf32b4300.sh @@ -6,4 +6,4 @@ source_sh ${srcdir}/emulparams/elf32bmip.sh TEXT_START_ADDR=0xa0020000 unset SHLIB_TEXT_START_ADDR EXECUTABLE_SYMBOLS='_DYNAMIC_LINK = 0;' -DYNAMIC_LINK=FALSE +DYNAMIC_LINK=false diff --git a/ld/emulparams/elf32lm32.sh b/ld/emulparams/elf32lm32.sh index 0db2a4f..fde66290 100644 --- a/ld/emulparams/elf32lm32.sh +++ b/ld/emulparams/elf32lm32.sh @@ -6,5 +6,5 @@ MAXPAGESIZE=0x1000 EMBEDDED=yes TEMPLATE_NAME=elf TEXT_START_ADDR=0x0000 -DYNAMIC_LINK=FALSE +DYNAMIC_LINK=false ALIGNMENT=4 diff --git a/ld/emulparams/elf32lr5900.sh b/ld/emulparams/elf32lr5900.sh index a06a666..7b72569 100644 --- a/ld/emulparams/elf32lr5900.sh +++ b/ld/emulparams/elf32lr5900.sh @@ -9,7 +9,7 @@ ARCH=mips:5900 MACHINE= MAXPAGESIZE=128 EMBEDDED=yes -DYNAMIC_LINK=FALSE +DYNAMIC_LINK=false unset DATA_ADDR SHLIB_TEXT_START_ADDR=0 diff --git a/ld/emulparams/elf32lr5900n32.sh b/ld/emulparams/elf32lr5900n32.sh index 56529d3..29209df 100644 --- a/ld/emulparams/elf32lr5900n32.sh +++ b/ld/emulparams/elf32lr5900n32.sh @@ -9,7 +9,7 @@ ARCH=mips:5900 MACHINE= MAXPAGESIZE=128 EMBEDDED=yes -DYNAMIC_LINK=FALSE +DYNAMIC_LINK=false OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)' OTHER_SECTIONS=" diff --git a/ld/emulparams/elf32visium.sh b/ld/emulparams/elf32visium.sh index f362ae3..e8b879c 100644 --- a/ld/emulparams/elf32visium.sh +++ b/ld/emulparams/elf32visium.sh @@ -6,4 +6,4 @@ NONPAGED_TEXT_START_ADDR=0x10000 ARCH=visium MACHINE= TEMPLATE_NAME=elf -DYNAMIC_LINK=FALSE +DYNAMIC_LINK=false diff --git a/ld/emulparams/elf_x86_64.sh b/ld/emulparams/elf_x86_64.sh index 6e31d22..48d0974 100644 --- a/ld/emulparams/elf_x86_64.sh +++ b/ld/emulparams/elf_x86_64.sh @@ -52,7 +52,7 @@ case "$target" in ' PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT=' else if (strcmp (optarg, "bndplt") == 0) - params.bndplt = TRUE; + params.bndplt = true; ' PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_BNDPLT" PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT" diff --git a/ld/emulparams/extern_protected_data.sh b/ld/emulparams/extern_protected_data.sh index 65c68ad..30f3d1c 100644 --- a/ld/emulparams/extern_protected_data.sh +++ b/ld/emulparams/extern_protected_data.sh @@ -5,7 +5,7 @@ PARSE_AND_LIST_OPTIONS_NOEXTEN_PROTECTED_DATA=' PARSE_AND_LIST_ARGS_CASE_Z_NOEXTEN_PROTECTED_DATA=' else if (strcmp (optarg, "noextern-protected-data") == 0) - link_info.extern_protected_data = FALSE; + link_info.extern_protected_data = false; ' diff --git a/ld/emulparams/plt_unwind.sh b/ld/emulparams/plt_unwind.sh index 38d7668..ab16156 100644 --- a/ld/emulparams/plt_unwind.sh +++ b/ld/emulparams/plt_unwind.sh @@ -14,10 +14,10 @@ PARSE_AND_LIST_LONGOPTS=' PARSE_AND_LIST_ARGS_CASES=' case OPTION_LD_GENERATED_UNWIND_INFO: - link_info.no_ld_generated_unwind_info = FALSE; + link_info.no_ld_generated_unwind_info = false; break; case OPTION_NO_LD_GENERATED_UNWIND_INFO: - link_info.no_ld_generated_unwind_info = TRUE; + link_info.no_ld_generated_unwind_info = true; break; ' diff --git a/ld/emulparams/reloc_overflow.sh b/ld/emulparams/reloc_overflow.sh index 6bf0abc..2481437 100644 --- a/ld/emulparams/reloc_overflow.sh +++ b/ld/emulparams/reloc_overflow.sh @@ -4,7 +4,7 @@ PARSE_AND_LIST_OPTIONS_RELOC_OVERFLOW=' ' PARSE_AND_LIST_ARGS_CASE_Z_RELOC_OVERFLOW=' else if (strcmp (optarg, "noreloc-overflow") == 0) - params.no_reloc_overflow_check = TRUE; + params.no_reloc_overflow_check = true; ' PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_RELOC_OVERFLOW" diff --git a/ld/emulparams/static.sh b/ld/emulparams/static.sh index 410839b..295251e 100644 --- a/ld/emulparams/static.sh +++ b/ld/emulparams/static.sh @@ -1,12 +1,12 @@ PARSE_AND_LIST_ARGS_CASES="$PARSE_AND_LIST_ARGS_CASES case OPTION_DYNAMIC_LINKER: - params.has_dynamic_linker = TRUE; - return FALSE; + params.has_dynamic_linker = true; + return false; case OPTION_NON_SHARED: /* Check if -static is passed at command-line before all input files. */ if (!lang_has_input_file) - params.static_before_all_inputs = TRUE; - return FALSE; + params.static_before_all_inputs = true; + return false; " diff --git a/ld/emulparams/x86-64-lam.sh b/ld/emulparams/x86-64-lam.sh index 40ddb05..fab42ff 100644 --- a/ld/emulparams/x86-64-lam.sh +++ b/ld/emulparams/x86-64-lam.sh @@ -15,7 +15,7 @@ PARSE_AND_LIST_OPTIONS_LAM=' ' PARSE_AND_LIST_ARGS_CASE_Z_LAM=' else if (strcmp (optarg, "lam-u48") == 0) - params.lam_u48 = TRUE; + params.lam_u48 = true; else if (strncmp (optarg, "lam-u48-report=", 15) == 0) { if (strcmp (optarg + 15, "none") == 0) @@ -29,7 +29,7 @@ PARSE_AND_LIST_ARGS_CASE_Z_LAM=' optarg + 15); } else if (strcmp (optarg, "lam-u57") == 0) - params.lam_u57 = TRUE; + params.lam_u57 = true; else if (strncmp (optarg, "lam-u57-report=", 15) == 0) { if (strcmp (optarg + 15, "none") == 0) |