Skip to content

Commit f38a268

Browse files
committedMar 31, 2021
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.
1 parent 015dc7e commit f38a268

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1571
-1532
lines changed
 

‎ld/ChangeLog

+40
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
2021-03-31 Alan Modra <amodra@gmail.com>
2+
3+
* sysdep.h (POISON_BFD_BOOLEAN): Define.
4+
* configure.ac (elf_list_options, elf_shlib_list_options=false),
5+
(elf_plt_unwind_list_options=false): Replace FALSE with false,
6+
and TRUE with true.
7+
* emulparams/call_nop.sh, * emulparams/cet.sh,
8+
* emulparams/dynamic_undefined_weak.sh,
9+
* emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
10+
* emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
11+
* emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
12+
* emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
13+
* emulparams/reloc_overflow.sh, * emulparams/static.sh,
14+
* emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
15+
* emultempl/aix.em, * emultempl/alphaelf.em,
16+
* emultempl/armcoff.em, * emultempl/armelf.em,
17+
* emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
18+
* emultempl/cr16elf.em, * emultempl/crxelf.em,
19+
* emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
20+
* emultempl/hppaelf.em, * emultempl/linux.em,
21+
* emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
22+
* emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
23+
* emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
24+
* emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
25+
* emultempl/pep.em, * emultempl/ppc32elf.em,
26+
* emultempl/ppc64elf.em, * emultempl/rxelf.em,
27+
* emultempl/rxlinux.em, * emultempl/scoreelf.em,
28+
* emultempl/solaris2.em, * emultempl/spuelf.em,
29+
* emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
30+
* emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
31+
* ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
32+
* ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
33+
* ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
34+
* ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
35+
* ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
36+
* pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
37+
* testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
38+
bfd_boolean with bool, FALSE with false, and TRUE with true.
39+
* configure: Regenerate.
40+
141
2021-03-31 Alan Modra <amodra@gmail.com>
242

343
* elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.

‎ld/configure

+11-11
Original file line numberDiff line numberDiff line change
@@ -17613,16 +17613,16 @@ _ACEOF
1761317613
fi
1761417614
fi
1761517615

17616-
elf_list_options=FALSE
17617-
elf_shlib_list_options=FALSE
17618-
elf_plt_unwind_list_options=FALSE
17616+
elf_list_options=false
17617+
elf_shlib_list_options=false
17618+
elf_plt_unwind_list_options=false
1761917619
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
1762017620
do
1762117621
if test "$targ_alias" = "all"; then
1762217622
all_targets=true
17623-
elf_list_options=TRUE
17624-
elf_shlib_list_options=TRUE
17625-
elf_plt_unwind_list_options=TRUE
17623+
elf_list_options=true
17624+
elf_shlib_list_options=true
17625+
elf_plt_unwind_list_options=true
1762617626
else
1762717627
# Canonicalize the secondary target names.
1762817628
result=`$ac_config_sub $targ_alias 2>/dev/null`
@@ -17658,25 +17658,25 @@ do
1765817658
tdir_$i=$result"
1765917659
case "${i}" in
1766017660
*elf*)
17661-
elf_list_options=TRUE
17661+
elf_list_options=true
1766217662
;;
1766317663
*)
1766417664
if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17665-
elf_list_options=TRUE
17665+
elf_list_options=true
1766617666
fi
1766717667
;;
1766817668
esac
17669-
if test "$elf_list_options" = "TRUE"; then
17669+
if test "$elf_list_options" = "true"; then
1767017670
source_sh()
1767117671
{
1767217672
. $1
1767317673
}
1767417674
source_sh ${srcdir}/emulparams/${i}.sh
1767517675
if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17676-
elf_shlib_list_options=TRUE
17676+
elf_shlib_list_options=true
1767717677
fi
1767817678
if test x${PLT_UNWIND} = xyes; then
17679-
elf_plt_unwind_list_options=TRUE
17679+
elf_plt_unwind_list_options=true
1768017680
fi
1768117681
fi
1768217682
;;

0 commit comments

Comments
 (0)
Please sign in to comment.