Deleted Added
full compact
3c3
< 2001, 2002
---
> 2001, 2002, 2003
7c7
< This file is part of BFD, the Binary File Descriptor library.
---
> This file is part of BFD, the Binary File Descriptor library.
9,12c9,12
< This program is free software; you can redistribute it and/or modify
< it under the terms of the GNU General Public License as published by
< the Free Software Foundation; either version 2 of the License, or
< (at your option) any later version.
---
> This program is free software; you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> the Free Software Foundation; either version 2 of the License, or
> (at your option) any later version.
14,17c14,17
< This program is distributed in the hope that it will be useful,
< but WITHOUT ANY WARRANTY; without even the implied warranty of
< MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< GNU General Public License for more details.
---
> This program is distributed in the hope that it will be useful,
> but WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> GNU General Public License for more details.
19,21c19,21
< You should have received a copy of the GNU General Public License
< along with this program; if not, write to the Free Software
< Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
---
> You should have received a copy of the GNU General Public License
> along with this program; if not, write to the Free Software
> Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
108c108
< configuration is selected.
---
> configuration is selected. */
110,111d109
< */
<
134,135c132,134
< static boolean aout_get_external_symbols PARAMS ((bfd *));
< static boolean translate_from_native_sym_flags
---
> static bfd_boolean aout_get_external_symbols
> PARAMS ((bfd *));
> static bfd_boolean translate_from_native_sym_flags
137c136
< static boolean translate_to_native_sym_flags
---
> static bfd_boolean translate_to_native_sym_flags
139,141c138,143
< static void adjust_o_magic PARAMS ((bfd *, struct internal_exec *));
< static void adjust_z_magic PARAMS ((bfd *, struct internal_exec *));
< static void adjust_n_magic PARAMS ((bfd *, struct internal_exec *));
---
> static void adjust_o_magic
> PARAMS ((bfd *, struct internal_exec *));
> static void adjust_z_magic
> PARAMS ((bfd *, struct internal_exec *));
> static void adjust_n_magic
> PARAMS ((bfd *, struct internal_exec *));
156c158
< addend.
---
> addend. */
158d159
< */
196,222c197,223
< /* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone */
< HOWTO(RELOC_8, 0, 0, 8, false, 0, complain_overflow_bitfield,0,"8", false, 0,0x000000ff, false),
< HOWTO(RELOC_16, 0, 1, 16, false, 0, complain_overflow_bitfield,0,"16", false, 0,0x0000ffff, false),
< HOWTO(RELOC_32, 0, 2, 32, false, 0, complain_overflow_bitfield,0,"32", false, 0,0xffffffff, false),
< HOWTO(RELOC_DISP8, 0, 0, 8, true, 0, complain_overflow_signed,0,"DISP8", false, 0,0x000000ff, false),
< HOWTO(RELOC_DISP16, 0, 1, 16, true, 0, complain_overflow_signed,0,"DISP16", false, 0,0x0000ffff, false),
< HOWTO(RELOC_DISP32, 0, 2, 32, true, 0, complain_overflow_signed,0,"DISP32", false, 0,0xffffffff, false),
< HOWTO(RELOC_WDISP30,2, 2, 30, true, 0, complain_overflow_signed,0,"WDISP30", false, 0,0x3fffffff, false),
< HOWTO(RELOC_WDISP22,2, 2, 22, true, 0, complain_overflow_signed,0,"WDISP22", false, 0,0x003fffff, false),
< HOWTO(RELOC_HI22, 10, 2, 22, false, 0, complain_overflow_bitfield,0,"HI22", false, 0,0x003fffff, false),
< HOWTO(RELOC_22, 0, 2, 22, false, 0, complain_overflow_bitfield,0,"22", false, 0,0x003fffff, false),
< HOWTO(RELOC_13, 0, 2, 13, false, 0, complain_overflow_bitfield,0,"13", false, 0,0x00001fff, false),
< HOWTO(RELOC_LO10, 0, 2, 10, false, 0, complain_overflow_dont,0,"LO10", false, 0,0x000003ff, false),
< HOWTO(RELOC_SFA_BASE,0, 2, 32, false, 0, complain_overflow_bitfield,0,"SFA_BASE", false, 0,0xffffffff, false),
< HOWTO(RELOC_SFA_OFF13,0,2, 32, false, 0, complain_overflow_bitfield,0,"SFA_OFF13",false, 0,0xffffffff, false),
< HOWTO(RELOC_BASE10, 0, 2, 10, false, 0, complain_overflow_dont,0,"BASE10", false, 0,0x000003ff, false),
< HOWTO(RELOC_BASE13, 0, 2, 13, false, 0, complain_overflow_signed,0,"BASE13", false, 0,0x00001fff, false),
< HOWTO(RELOC_BASE22, 10, 2, 22, false, 0, complain_overflow_bitfield,0,"BASE22", false, 0,0x003fffff, false),
< HOWTO(RELOC_PC10, 0, 2, 10, true, 0, complain_overflow_dont,0,"PC10", false, 0,0x000003ff, true),
< HOWTO(RELOC_PC22, 10, 2, 22, true, 0, complain_overflow_signed,0,"PC22", false, 0,0x003fffff, true),
< HOWTO(RELOC_JMP_TBL,2, 2, 30, true, 0, complain_overflow_signed,0,"JMP_TBL", false, 0,0x3fffffff, false),
< HOWTO(RELOC_SEGOFF16,0, 2, 0, false, 0, complain_overflow_bitfield,0,"SEGOFF16", false, 0,0x00000000, false),
< HOWTO(RELOC_GLOB_DAT,0, 2, 0, false, 0, complain_overflow_bitfield,0,"GLOB_DAT", false, 0,0x00000000, false),
< HOWTO(RELOC_JMP_SLOT,0, 2, 0, false, 0, complain_overflow_bitfield,0,"JMP_SLOT", false, 0,0x00000000, false),
< HOWTO(RELOC_RELATIVE,0, 2, 0, false, 0, complain_overflow_bitfield,0,"RELATIVE", false, 0,0x00000000, false),
< HOWTO(0, 0, 0, 0, false, 0, complain_overflow_dont, 0, "R_SPARC_NONE", false,0,0x00000000,true),
< HOWTO(0, 0, 0, 0, false, 0, complain_overflow_dont, 0, "R_SPARC_NONE", false,0,0x00000000,true),
---
> /* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone. */
> HOWTO(RELOC_8, 0, 0, 8, FALSE, 0, complain_overflow_bitfield,0,"8", FALSE, 0,0x000000ff, FALSE),
> HOWTO(RELOC_16, 0, 1, 16, FALSE, 0, complain_overflow_bitfield,0,"16", FALSE, 0,0x0000ffff, FALSE),
> HOWTO(RELOC_32, 0, 2, 32, FALSE, 0, complain_overflow_bitfield,0,"32", FALSE, 0,0xffffffff, FALSE),
> HOWTO(RELOC_DISP8, 0, 0, 8, TRUE, 0, complain_overflow_signed,0,"DISP8", FALSE, 0,0x000000ff, FALSE),
> HOWTO(RELOC_DISP16, 0, 1, 16, TRUE, 0, complain_overflow_signed,0,"DISP16", FALSE, 0,0x0000ffff, FALSE),
> HOWTO(RELOC_DISP32, 0, 2, 32, TRUE, 0, complain_overflow_signed,0,"DISP32", FALSE, 0,0xffffffff, FALSE),
> HOWTO(RELOC_WDISP30,2, 2, 30, TRUE, 0, complain_overflow_signed,0,"WDISP30", FALSE, 0,0x3fffffff, FALSE),
> HOWTO(RELOC_WDISP22,2, 2, 22, TRUE, 0, complain_overflow_signed,0,"WDISP22", FALSE, 0,0x003fffff, FALSE),
> HOWTO(RELOC_HI22, 10, 2, 22, FALSE, 0, complain_overflow_bitfield,0,"HI22", FALSE, 0,0x003fffff, FALSE),
> HOWTO(RELOC_22, 0, 2, 22, FALSE, 0, complain_overflow_bitfield,0,"22", FALSE, 0,0x003fffff, FALSE),
> HOWTO(RELOC_13, 0, 2, 13, FALSE, 0, complain_overflow_bitfield,0,"13", FALSE, 0,0x00001fff, FALSE),
> HOWTO(RELOC_LO10, 0, 2, 10, FALSE, 0, complain_overflow_dont,0,"LO10", FALSE, 0,0x000003ff, FALSE),
> HOWTO(RELOC_SFA_BASE,0, 2, 32, FALSE, 0, complain_overflow_bitfield,0,"SFA_BASE", FALSE, 0,0xffffffff, FALSE),
> HOWTO(RELOC_SFA_OFF13,0,2, 32, FALSE, 0, complain_overflow_bitfield,0,"SFA_OFF13",FALSE, 0,0xffffffff, FALSE),
> HOWTO(RELOC_BASE10, 0, 2, 10, FALSE, 0, complain_overflow_dont,0,"BASE10", FALSE, 0,0x000003ff, FALSE),
> HOWTO(RELOC_BASE13, 0, 2, 13, FALSE, 0, complain_overflow_signed,0,"BASE13", FALSE, 0,0x00001fff, FALSE),
> HOWTO(RELOC_BASE22, 10, 2, 22, FALSE, 0, complain_overflow_bitfield,0,"BASE22", FALSE, 0,0x003fffff, FALSE),
> HOWTO(RELOC_PC10, 0, 2, 10, TRUE, 0, complain_overflow_dont,0,"PC10", FALSE, 0,0x000003ff, TRUE),
> HOWTO(RELOC_PC22, 10, 2, 22, TRUE, 0, complain_overflow_signed,0,"PC22", FALSE, 0,0x003fffff, TRUE),
> HOWTO(RELOC_JMP_TBL,2, 2, 30, TRUE, 0, complain_overflow_signed,0,"JMP_TBL", FALSE, 0,0x3fffffff, FALSE),
> HOWTO(RELOC_SEGOFF16,0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"SEGOFF16", FALSE, 0,0x00000000, FALSE),
> HOWTO(RELOC_GLOB_DAT,0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"GLOB_DAT", FALSE, 0,0x00000000, FALSE),
> HOWTO(RELOC_JMP_SLOT,0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"JMP_SLOT", FALSE, 0,0x00000000, FALSE),
> HOWTO(RELOC_RELATIVE,0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"RELATIVE", FALSE, 0,0x00000000, FALSE),
> HOWTO(0, 0, 0, 0, FALSE, 0, complain_overflow_dont, 0, "R_SPARC_NONE", FALSE,0,0x00000000,TRUE),
> HOWTO(0, 0, 0, 0, FALSE, 0, complain_overflow_dont, 0, "R_SPARC_NONE", FALSE,0,0x00000000,TRUE),
224c225
< HOWTO(RELOC_SPARC_REV32, 0, 2, 32, false, 0, complain_overflow_dont,0,"R_SPARC_REV32", false, 0,0xffffffff, false),
---
> HOWTO(RELOC_SPARC_REV32, 0, 2, 32, FALSE, 0, complain_overflow_dont,0,"R_SPARC_REV32", FALSE, 0,0xffffffff, FALSE),
229,241c230,243
< reloc_howto_type howto_table_std[] = {
< /* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone */
< HOWTO ( 0, 0, 0, 8, false, 0, complain_overflow_bitfield,0,"8", true, 0x000000ff,0x000000ff, false),
< HOWTO ( 1, 0, 1, 16, false, 0, complain_overflow_bitfield,0,"16", true, 0x0000ffff,0x0000ffff, false),
< HOWTO ( 2, 0, 2, 32, false, 0, complain_overflow_bitfield,0,"32", true, 0xffffffff,0xffffffff, false),
< HOWTO ( 3, 0, 4, 64, false, 0, complain_overflow_bitfield,0,"64", true, 0xdeaddead,0xdeaddead, false),
< HOWTO ( 4, 0, 0, 8, true, 0, complain_overflow_signed, 0,"DISP8", true, 0x000000ff,0x000000ff, false),
< HOWTO ( 5, 0, 1, 16, true, 0, complain_overflow_signed, 0,"DISP16", true, 0x0000ffff,0x0000ffff, false),
< HOWTO ( 6, 0, 2, 32, true, 0, complain_overflow_signed, 0,"DISP32", true, 0xffffffff,0xffffffff, false),
< HOWTO ( 7, 0, 4, 64, true, 0, complain_overflow_signed, 0,"DISP64", true, 0xfeedface,0xfeedface, false),
< HOWTO ( 8, 0, 2, 0, false, 0, complain_overflow_bitfield,0,"GOT_REL", false, 0,0x00000000, false),
< HOWTO ( 9, 0, 1, 16, false, 0, complain_overflow_bitfield,0,"BASE16", false,0xffffffff,0xffffffff, false),
< HOWTO (10, 0, 2, 32, false, 0, complain_overflow_bitfield,0,"BASE32", false,0xffffffff,0xffffffff, false),
---
> reloc_howto_type howto_table_std[] =
> {
> /* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone. */
> HOWTO ( 0, 0, 0, 8, FALSE, 0, complain_overflow_bitfield,0,"8", TRUE, 0x000000ff,0x000000ff, FALSE),
> HOWTO ( 1, 0, 1, 16, FALSE, 0, complain_overflow_bitfield,0,"16", TRUE, 0x0000ffff,0x0000ffff, FALSE),
> HOWTO ( 2, 0, 2, 32, FALSE, 0, complain_overflow_bitfield,0,"32", TRUE, 0xffffffff,0xffffffff, FALSE),
> HOWTO ( 3, 0, 4, 64, FALSE, 0, complain_overflow_bitfield,0,"64", TRUE, 0xdeaddead,0xdeaddead, FALSE),
> HOWTO ( 4, 0, 0, 8, TRUE, 0, complain_overflow_signed, 0,"DISP8", TRUE, 0x000000ff,0x000000ff, FALSE),
> HOWTO ( 5, 0, 1, 16, TRUE, 0, complain_overflow_signed, 0,"DISP16", TRUE, 0x0000ffff,0x0000ffff, FALSE),
> HOWTO ( 6, 0, 2, 32, TRUE, 0, complain_overflow_signed, 0,"DISP32", TRUE, 0xffffffff,0xffffffff, FALSE),
> HOWTO ( 7, 0, 4, 64, TRUE, 0, complain_overflow_signed, 0,"DISP64", TRUE, 0xfeedface,0xfeedface, FALSE),
> HOWTO ( 8, 0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"GOT_REL", FALSE, 0,0x00000000, FALSE),
> HOWTO ( 9, 0, 1, 16, FALSE, 0, complain_overflow_bitfield,0,"BASE16", FALSE,0xffffffff,0xffffffff, FALSE),
> HOWTO (10, 0, 2, 32, FALSE, 0, complain_overflow_bitfield,0,"BASE32", FALSE,0xffffffff,0xffffffff, FALSE),
247c249
< HOWTO (16, 0, 2, 0, false, 0, complain_overflow_bitfield,0,"JMP_TABLE", false, 0,0x00000000, false),
---
> HOWTO (16, 0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"JMP_TABLE", FALSE, 0,0x00000000, FALSE),
263c265
< HOWTO (32, 0, 2, 0, false, 0, complain_overflow_bitfield,0,"RELATIVE", false, 0,0x00000000, false),
---
> HOWTO (32, 0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"RELATIVE", FALSE, 0,0x00000000, FALSE),
271c273
< HOWTO (40, 0, 2, 0, false, 0, complain_overflow_bitfield,0,"BASEREL", false, 0,0x00000000, false),
---
> HOWTO (40, 0, 2, 0, FALSE, 0, complain_overflow_bitfield,0,"BASEREL", FALSE, 0,0x00000000, FALSE),
283a286
>
293a297
>
316c320
< /* std relocs */
---
> /* std relocs. */
318a323
> STD (BFD_RELOC_8, 0);
419c424
< boolean
---
> bfd_boolean
425c430
< return false;
---
> return FALSE;
428c433
< return false;
---
> return FALSE;
431,432c436,437
< return false;
< return true;
---
> return FALSE;
> return TRUE;
477c482,483
< *(abfd->tdata.aout_data->a.hdr) = *execp; /* Copy in the internal_exec struct */
---
> /* Copy in the internal_exec struct. */
> *(abfd->tdata.aout_data->a.hdr) = *execp;
480c486
< /* Set the file flags */
---
> /* Set the file flags. */
484c490
< /* Setting of EXEC_P has been deferred to the bottom of this function */
---
> /* Setting of EXEC_P has been deferred to the bottom of this function. */
566c572
< /* data and bss are already filled in since they're so standard */
---
> /* Data and bss are already filled in since they're so standard. */
568c574
< /* The virtual memory addresses of the sections */
---
> /* The virtual memory addresses of the sections. */
573c579
< /* The file offsets of the sections */
---
> /* The file offsets of the sections. */
577c583
< /* The file offsets of the relocation info */
---
> /* The file offsets of the relocation info. */
672c678
< boolean aout_@var{size}_mkobject, (bfd *abfd);
---
> bfd_boolean aout_@var{size}_mkobject, (bfd *abfd);
678c684
< boolean
---
> bfd_boolean
689c695
< return false;
---
> return FALSE;
698c704
< return true;
---
> return TRUE;
724c730
< boolean *unknown;
---
> bfd_boolean *unknown;
729c735
< *unknown = true;
---
> *unknown = TRUE;
748c754
< case bfd_mach_m68000: arch_flags = M_UNKNOWN; *unknown = false; break;
---
> case bfd_mach_m68000: arch_flags = M_UNKNOWN; *unknown = FALSE; break;
756c762,764
< if (machine == 0)
---
> if (machine == 0
> || machine == bfd_mach_i386_i386
> || machine == bfd_mach_i386_i386_intel_syntax)
792a801
> case bfd_mach_mipsisa32r2:
794a804
> case bfd_mach_mipsisa64r2:
816c826
< *unknown = false;
---
> *unknown = FALSE;
829c839
< *unknown = false;
---
> *unknown = FALSE;
839c849
< boolean aout_@var{size}_set_arch_mach,
---
> bfd_boolean aout_@var{size}_set_arch_mach,
850c860
< boolean
---
> bfd_boolean
857c867
< return false;
---
> return FALSE;
861c871
< boolean unknown;
---
> bfd_boolean unknown;
865c875
< return false;
---
> return FALSE;
868c878
< /* Determine the size of a relocation entry */
---
> /* Determine the size of a relocation entry. */
906c916
< #if 0 /* ?? Does alignment in the file image really matter? */
---
> #if 0 /* ?? Does alignment in the file image really matter? */
1113c1123
< boolean
---
> bfd_boolean
1122c1132
< return false;
---
> return FALSE;
1125c1135
< return true;
---
> return TRUE;
1202c1212
< return true;
---
> return TRUE;
1210c1220
< boolean aout_@var{size}_new_section_hook,
---
> bfd_boolean aout_@var{size}_new_section_hook,
1218c1228
< boolean
---
> bfd_boolean
1223c1233
< /* align to double at least */
---
> /* Align to double at least. */
1227,1233c1237,1243
< {
< if (obj_textsec (abfd) == NULL && !strcmp (newsect->name, ".text"))
< {
< obj_textsec (abfd)= newsect;
< newsect->target_index = N_TEXT;
< return true;
< }
---
> {
> if (obj_textsec (abfd) == NULL && !strcmp (newsect->name, ".text"))
> {
> obj_textsec (abfd)= newsect;
> newsect->target_index = N_TEXT;
> return TRUE;
> }
1235,1240c1245,1250
< if (obj_datasec (abfd) == NULL && !strcmp (newsect->name, ".data"))
< {
< obj_datasec (abfd) = newsect;
< newsect->target_index = N_DATA;
< return true;
< }
---
> if (obj_datasec (abfd) == NULL && !strcmp (newsect->name, ".data"))
> {
> obj_datasec (abfd) = newsect;
> newsect->target_index = N_DATA;
> return TRUE;
> }
1242,1247c1252,1258
< if (obj_bsssec (abfd) == NULL && !strcmp (newsect->name, ".bss"))
< {
< obj_bsssec (abfd) = newsect;
< newsect->target_index = N_BSS;
< return true;
< }
---
> if (obj_bsssec (abfd) == NULL && !strcmp (newsect->name, ".bss"))
> {
> obj_bsssec (abfd) = newsect;
> newsect->target_index = N_BSS;
> return TRUE;
> }
> }
1249,1252c1260,1261
< }
<
< /* We allow more than three sections internally */
< return true;
---
> /* We allow more than three sections internally. */
> return TRUE;
1255c1264
< boolean
---
> bfd_boolean
1259c1268
< PTR location;
---
> const PTR location;
1269c1278
< return false;
---
> return FALSE;
1275c1284
< return false;
---
> return FALSE;
1281,1285c1290,1300
< (*_bfd_error_handler)
< (_("%s: can not represent section `%s' in a.out object file format"),
< bfd_get_filename (abfd), bfd_get_section_name (abfd, section));
< bfd_set_error (bfd_error_nonrepresentable_section);
< return false;
---
> if (aout_section_merge_with_text_p (abfd, section))
> section->filepos = obj_textsec (abfd)->filepos +
> (section->vma - obj_textsec (abfd)->vma);
> else
> {
> (*_bfd_error_handler)
> (_("%s: can not represent section `%s' in a.out object file format"),
> bfd_get_filename (abfd), bfd_get_section_name (abfd, section));
> bfd_set_error (bfd_error_nonrepresentable_section);
> return FALSE;
> }
1292c1307
< return false;
---
> return FALSE;
1295c1310
< return true;
---
> return TRUE;
1300c1315
< static boolean
---
> static bfd_boolean
1315,1316c1330,1331
< &obj_aout_sym_window (abfd), true))
< return false;
---
> &obj_aout_sym_window (abfd), TRUE))
> return FALSE;
1325c1340
< return false;
---
> return FALSE;
1332c1347
< return false;
---
> return FALSE;
1351c1366
< return false;
---
> return FALSE;
1356,1357c1371,1372
< &obj_aout_string_window (abfd), true))
< return false;
---
> &obj_aout_string_window (abfd), TRUE))
> return FALSE;
1362c1377
< return false;
---
> return FALSE;
1370c1385
< return false;
---
> return FALSE;
1383c1398
< return true;
---
> return TRUE;
1391c1406
< static boolean
---
> static bfd_boolean
1404d1418
<
1429c1443
< return true;
---
> return TRUE;
1518c1532
< return false;
---
> return FALSE;
1523c1537
< return false;
---
> return FALSE;
1529c1543
< return false;
---
> return FALSE;
1642c1656
< return true;
---
> return TRUE;
1647c1661
< static boolean
---
> static bfd_boolean
1673c1687
< return false;
---
> return FALSE;
1698,1702c1712,1721
< (*_bfd_error_handler)
< (_("%s: can not represent section `%s' in a.out object file format"),
< bfd_get_filename (abfd), bfd_get_section_name (abfd, sec));
< bfd_set_error (bfd_error_nonrepresentable_section);
< return false;
---
> if (aout_section_merge_with_text_p (abfd, sec))
> sym_pointer->e_type[0] |= N_TEXT;
> else
> {
> (*_bfd_error_handler)
> (_("%s: can not represent section `%s' in a.out object file format"),
> bfd_get_filename (abfd), bfd_get_section_name (abfd, sec));
> bfd_set_error (bfd_error_nonrepresentable_section);
> return FALSE;
> }
1705c1724
< /* Turn the symbol from section relative to absolute again */
---
> /* Turn the symbol from section relative to absolute again. */
1720a1740
>
1749c1769
< return true;
---
> return TRUE;
1769c1789
< boolean
---
> bfd_boolean
1777c1797
< boolean dynamic;
---
> bfd_boolean dynamic;
1799c1819
< return false;
---
> return FALSE;
1808c1828
< return false;
---
> return FALSE;
1814c1834
< return true;
---
> return TRUE;
1821c1841
< boolean
---
> bfd_boolean
1829c1849
< /* If there's no work to be done, don't do any */
---
> /* If there's no work to be done, don't do any. */
1831c1851
< return true;
---
> return TRUE;
1836c1856
< return false;
---
> return FALSE;
1842c1862
< return false;
---
> return FALSE;
1851c1871
< false)))
---
> FALSE)))
1854c1874
< return false;
---
> return FALSE;
1876c1896
< return true;
---
> return TRUE;
1889,1890c1909,1911
< PARAMS ((bfd *, struct bfd_strtab_hash *, const char *, boolean));
< static boolean emit_stringtab PARAMS ((bfd *, struct bfd_strtab_hash *));
---
> PARAMS ((bfd *, struct bfd_strtab_hash *, const char *, bfd_boolean));
> static bfd_boolean emit_stringtab
> PARAMS ((bfd *, struct bfd_strtab_hash *));
1900c1921
< boolean copy;
---
> bfd_boolean copy;
1902c1923
< boolean hash;
---
> bfd_boolean hash;
1911c1932
< hash = true;
---
> hash = TRUE;
1913c1934
< hash = false;
---
> hash = FALSE;
1930c1951
< static boolean
---
> static bfd_boolean
1941c1962
< return false;
---
> return FALSE;
1946c1967
< boolean
---
> bfd_boolean
1956c1977
< return false;
---
> return FALSE;
1965c1986
< indx = add_to_stringtab (abfd, strtab, g->name, false);
---
> indx = add_to_stringtab (abfd, strtab, g->name, FALSE);
2000c2021
< return true;
---
> return TRUE;
2004c2025
< return false;
---
> return FALSE;
2008c2029
< NAME(aout,get_symtab) (abfd, location)
---
> NAME(aout,canonicalize_symtab) (abfd, location)
2026c2047
< /* Standard reloc stuff */
---
> /* Standard reloc stuff. */
2048,2049c2069,2070
< r_length = g->howto->size ; /* Size as a power of two */
< r_pcrel = (int) g->howto->pc_relative; /* Relative to PC? */
---
> r_length = g->howto->size ; /* Size as a power of two. */
> r_pcrel = (int) g->howto->pc_relative; /* Relative to PC? */
2060c2081
< /* name was clobbered by aout_write_syms to be symbol index */
---
> /* Name was clobbered by aout_write_syms to be symbol index. */
2067,2068c2088
< check for that here
< */
---
> check for that here. */
2075,2080c2095,2100
< {
< /* Whoops, looked like an abs symbol, but is really an offset
< from the abs section */
< r_index = N_ABS;
< r_extern = 0;
< }
---
> {
> /* Whoops, looked like an abs symbol, but is
> really an offset from the abs section. */
> r_index = N_ABS;
> r_extern = 0;
> }
2082,2087c2102,2106
< {
< /* Fill in symbol */
< r_extern = 1;
< r_index = (*(g->sym_ptr_ptr))->KEEPIT;
<
< }
---
> {
> /* Fill in symbol. */
> r_extern = 1;
> r_index = (*(g->sym_ptr_ptr))->KEEPIT;
> }
2091c2110
< /* Just an ordinary section */
---
> /* Just an ordinary section. */
2096c2115
< /* now the fun stuff */
---
> /* Now the fun stuff. */
2123c2142
< /* Extended stuff */
---
> /* Extended stuff. */
2156d2174
<
2173c2191
< /* Just an ordinary section */
---
> /* Just an ordinary section. */
2178c2196
< /* now the fun stuff */
---
> /* Now the fun stuff. */
2259c2277
< /* now the fun stuff */
---
> /* Now the fun stuff. */
2318c2336
< /* now the fun stuff */
---
> /* Now the fun stuff. */
2371c2389
< boolean
---
> bfd_boolean
2387c2405
< return true;
---
> return TRUE;
2390c2408
< return true;
---
> return TRUE;
2401c2419
< return false;
---
> return FALSE;
2405c2423
< return false;
---
> return FALSE;
2414c2432
< return false;
---
> return FALSE;
2420c2438
< return false;
---
> return FALSE;
2427c2445
< return false;
---
> return FALSE;
2453c2471
< return true;
---
> return TRUE;
2458c2476
< boolean
---
> bfd_boolean
2471c2489
< return true;
---
> return TRUE;
2477c2495
< return false;
---
> return FALSE;
2501c2519
< return false;
---
> return FALSE;
2505c2523
< return true;
---
> return TRUE;
2508c2526,2527
< /* This is stupid. This function should be a boolean predicate */
---
> /* This is stupid. This function should be a boolean predicate. */
>
2560a2580
>
2562,2564c2582
< {
< return (sizeof (arelent *) * (asect->reloc_count+1));
< }
---
> return (sizeof (arelent *) * (asect->reloc_count+1));
2682c2700
< boolean dynamic;
---
> bfd_boolean dynamic;
2718c2736
< boolean dynamic;
---
> bfd_boolean dynamic;
2736c2754
< false)))
---
> FALSE)))
2742,2746c2760,2762
< /*
< provided a BFD, a section and an offset into the section, calculate
< and return the name of the source file and the line nearest to the
< wanted location.
< */
---
> /* Provided a BFD, a section and an offset into the section, calculate
> and return the name of the source file and the line nearest to the
> wanted location. */
2748c2764
< boolean
---
> bfd_boolean
2759c2775
< /* Run down the file looking for the filename, function and linenumber */
---
> /* Run down the file looking for the filename, function and linenumber. */
2774a2791
>
2862c2879
< /* We'll keep this if it is nearer than the one we have already */
---
> /* We'll keep this if it is nearer than the one we have already. */
2864,2867c2881,2885
< q->symbol.value <= offset) {
< low_func_vma = q->symbol.value;
< func = (asymbol *)q;
< }
---
> q->symbol.value <= offset)
> {
> low_func_vma = q->symbol.value;
> func = (asymbol *)q;
> }
2888a2907
>
2895a2915
>
2903c2923
< return false;
---
> return FALSE;
2933c2953
< /* Have to remove : stuff */
---
> /* Have to remove : stuff. */
2940c2960
< return true;
---
> return TRUE;
2946c2966
< boolean execable ATTRIBUTE_UNUSED;
---
> bfd_boolean execable ATTRIBUTE_UNUSED;
2954c2974
< boolean
---
> bfd_boolean
2962c2982
< return true;
---
> return TRUE;
2979c2999
< return true;
---
> return TRUE;
2984c3004
< static boolean aout_link_add_object_symbols
---
> static bfd_boolean aout_link_add_object_symbols
2986,2991c3006,3012
< static boolean aout_link_check_archive_element
< PARAMS ((bfd *, struct bfd_link_info *, boolean *));
< static boolean aout_link_free_symbols PARAMS ((bfd *));
< static boolean aout_link_check_ar_symbols
< PARAMS ((bfd *, struct bfd_link_info *, boolean *pneeded));
< static boolean aout_link_add_symbols
---
> static bfd_boolean aout_link_check_archive_element
> PARAMS ((bfd *, struct bfd_link_info *, bfd_boolean *));
> static bfd_boolean aout_link_free_symbols
> PARAMS ((bfd *));
> static bfd_boolean aout_link_check_ar_symbols
> PARAMS ((bfd *, struct bfd_link_info *, bfd_boolean *pneeded));
> static bfd_boolean aout_link_add_symbols
3019c3040
< ret->written = false;
---
> ret->written = FALSE;
3028c3049
< boolean
---
> bfd_boolean
3032,3034c3053,3055
< struct bfd_hash_entry *(*newfunc) PARAMS ((struct bfd_hash_entry *,
< struct bfd_hash_table *,
< const char *));
---
> struct bfd_hash_entry *(*newfunc)
> PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *,
> const char *));
3048c3069
< ret = (struct aout_link_hash_table *) bfd_alloc (abfd, amt);
---
> ret = (struct aout_link_hash_table *) bfd_malloc (amt);
3050a3072
>
3063c3085
< boolean
---
> bfd_boolean
3077c3099
< return false;
---
> return FALSE;
3083c3105
< static boolean
---
> static bfd_boolean
3089c3111
< return false;
---
> return FALSE;
3091c3113
< return false;
---
> return FALSE;
3095c3117
< return false;
---
> return FALSE;
3097c3119
< return true;
---
> return TRUE;
3105c3127
< static boolean
---
> static bfd_boolean
3109c3131
< boolean *pneeded;
---
> bfd_boolean *pneeded;
3112c3134
< return false;
---
> return FALSE;
3115c3137
< return false;
---
> return FALSE;
3120c3142
< return false;
---
> return FALSE;
3126c3148
< return false;
---
> return FALSE;
3129c3151
< return true;
---
> return TRUE;
3134c3156
< static boolean
---
> static bfd_boolean
3156c3178
< return true;
---
> return TRUE;
3166c3188
< static boolean
---
> static bfd_boolean
3170c3192
< boolean *pneeded;
---
> bfd_boolean *pneeded;
3176c3198
< *pneeded = false;
---
> *pneeded = FALSE;
3206c3228
< h = bfd_link_hash_lookup (info->hash, name, false, false, true);
---
> h = bfd_link_hash_lookup (info->hash, name, FALSE, FALSE, TRUE);
3227,3229c3249,3252
< definition of the symbol is undefined or common. If the
< current definition is common, we have a case in which we
< have already seen an object file including
---
> definition of the symbol is undefined or common.
>
> If the current definition is common, we have a case in
> which we have already seen an object file including:
3231c3254
< and this object file from the archive includes
---
> and this object file from the archive includes:
3233c3256,3257
< In such a case we must include this object file.
---
> In such a case, whether to include this object is target
> dependant for backward compatibility.
3238,3239c3262,3285
< seems a bit crazy to me, and I haven't implemented it.
< However, it might be correct. */
---
> seems a bit crazy to me, and it has not been implemented
> yet. However, it might be correct. */
> if (h->type == bfd_link_hash_common)
> {
> int skip = 0;
>
> switch (info->common_skip_ar_aymbols)
> {
> case bfd_link_common_skip_text:
> skip = (type == (N_TEXT | N_EXT));
> break;
> case bfd_link_common_skip_data:
> skip = (type == (N_DATA | N_EXT));
> break;
> default:
> case bfd_link_common_skip_all:
> skip = 1;
> break;
> }
>
> if (skip)
> continue;
> }
>
3241,3243c3287,3289
< return false;
< *pneeded = true;
< return true;
---
> return FALSE;
> *pneeded = TRUE;
> return TRUE;
3270,3272c3316,3318
< return false;
< *pneeded = true;
< return true;
---
> return FALSE;
> *pneeded = TRUE;
> return TRUE;
3281c3327
< return false;
---
> return FALSE;
3318,3320c3364,3366
< return false;
< *pneeded = true;
< return true;
---
> return FALSE;
> *pneeded = TRUE;
> return TRUE;
3326c3372
< return true;
---
> return TRUE;
3331c3377
< static boolean
---
> static bfd_boolean
3336,3340c3382,3385
< boolean (*add_one_symbol) PARAMS ((struct bfd_link_info *, bfd *,
< const char *, flagword, asection *,
< bfd_vma, const char *, boolean,
< boolean,
< struct bfd_link_hash_entry **));
---
> bfd_boolean (*add_one_symbol)
> PARAMS ((struct bfd_link_info *, bfd *, const char *, flagword, asection *,
> bfd_vma, const char *, bfd_boolean, bfd_boolean,
> struct bfd_link_hash_entry **));
3344c3389
< boolean copy;
---
> bfd_boolean copy;
3354c3399
< copy = false;
---
> copy = FALSE;
3356c3401
< copy = true;
---
> copy = TRUE;
3362c3407
< return false;
---
> return FALSE;
3372c3417
< return false;
---
> return FALSE;
3518c3563
< (info, abfd, name, flags, section, value, string, copy, false,
---
> (info, abfd, name, flags, section, value, string, copy, FALSE,
3520c3565
< return false;
---
> return FALSE;
3546c3591
< return true;
---
> return TRUE;
3609c3654
< static boolean aout_link_input_bfd
---
> static bfd_boolean aout_link_input_bfd
3611c3656
< static boolean aout_link_write_symbols
---
> static bfd_boolean aout_link_write_symbols
3613c3658
< static boolean aout_link_write_other_symbol
---
> static bfd_boolean aout_link_write_other_symbol
3615c3660
< static boolean aout_link_input_section
---
> static bfd_boolean aout_link_input_section
3619c3664
< static boolean aout_link_input_section_std
---
> static bfd_boolean aout_link_input_section_std
3623c3668
< static boolean aout_link_input_section_ext
---
> static bfd_boolean aout_link_input_section_ext
3629c3674
< static boolean aout_link_reloc_link_order
---
> static bfd_boolean aout_link_reloc_link_order
3672c3717
< boolean
---
> bfd_boolean
3679c3724
< boolean includes_hash_initialized = false;
---
> bfd_boolean includes_hash_initialized = FALSE;
3689c3734
< boolean have_link_order_relocs;
---
> bfd_boolean have_link_order_relocs;
3705c3750
< includes_hash_initialized = true;
---
> includes_hash_initialized = TRUE;
3708c3753
< relocateable output, count the relocs. */
---
> relocatable output, count the relocs. */
3718c3763
< if (info->relocateable)
---
> if (info->relocatable)
3732c3777
< (_("%s: relocateable link from %s to %s not supported"),
---
> (_("%s: relocatable link from %s to %s not supported"),
3762c3807
< if (info->relocateable)
---
> if (info->relocatable)
3828c3873
< false, false, false);
---
> FALSE, FALSE, FALSE);
3855c3900
< sub->output_has_begun = false;
---
> sub->output_has_begun = FALSE;
3864,3867c3909,3910
< {
< if (p->type == bfd_indirect_link_order)
< p->u.indirect.section->linker_mark = (unsigned int) true;
< }
---
> if (p->type == bfd_indirect_link_order)
> p->u.indirect.section->linker_mark = TRUE;
3870c3913
< have_link_order_relocs = false;
---
> have_link_order_relocs = FALSE;
3888c3931
< input_bfd->output_has_begun = true;
---
> input_bfd->output_has_begun = TRUE;
3895c3938
< have_link_order_relocs = true;
---
> have_link_order_relocs = TRUE;
3955c3998
< includes_hash_initialized = false;
---
> includes_hash_initialized = FALSE;
3994c4037
< return true;
---
> return TRUE;
4007c4050
< return false;
---
> return FALSE;
4012c4055
< static boolean
---
> static bfd_boolean
4030c4073
< finfo->info->keep_memory is false. */
---
> finfo->info->keep_memory is FALSE. */
4032c4075
< return false;
---
> return FALSE;
4039c4082
< return false;
---
> return FALSE;
4051c4094
< return false;
---
> return FALSE;
4059c4102
< return false;
---
> return FALSE;
4068c4111
< return false;
---
> return FALSE;
4071c4114
< return true;
---
> return TRUE;
4077c4120
< static boolean
---
> static bfd_boolean
4093,4094c4136,4137
< boolean pass;
< boolean skip_next;
---
> bfd_boolean pass;
> bfd_boolean skip_next;
4108c4151
< false, false) != NULL)
---
> FALSE, FALSE) != NULL)
4115c4158
< input_bfd->filename, false);
---
> input_bfd->filename, FALSE);
4117c4160
< return false;
---
> return FALSE;
4128,4129c4171,4172
< pass = false;
< skip_next = false;
---
> pass = FALSE;
> skip_next = FALSE;
4140c4183
< boolean skip;
---
> bfd_boolean skip;
4143c4186
< boolean copy;
---
> bfd_boolean copy;
4167c4210
< pass = false;
---
> pass = FALSE;
4174c4217
< skip_next = false;
---
> skip_next = FALSE;
4216c4259
< skip_next = true;
---
> skip_next = TRUE;
4222c4265
< skip = false;
---
> skip = FALSE;
4229c4272
< skip = true;
---
> skip = TRUE;
4232c4275
< if (bfd_hash_lookup (finfo->info->keep_hash, name, false, false)
---
> if (bfd_hash_lookup (finfo->info->keep_hash, name, FALSE, FALSE)
4234c4277
< skip = true;
---
> skip = TRUE;
4237c4280
< skip = true;
---
> skip = TRUE;
4243c4286
< h->written = true;
---
> h->written = TRUE;
4272c4315
< pass = true;
---
> pass = TRUE;
4288c4331
< skip_next = true;
---
> skip_next = TRUE;
4380c4423
< h->written = true;
---
> h->written = TRUE;
4396c4439
< skip = true;
---
> skip = TRUE;
4399c4442
< skip = true;
---
> skip = TRUE;
4404c4447
< pass = false;
---
> pass = FALSE;
4460c4503
< copy = (boolean) (! finfo->info->keep_memory);
---
> copy = (bfd_boolean) (! finfo->info->keep_memory);
4462c4505
< name, true, copy);
---
> name, TRUE, copy);
4464c4507
< return false;
---
> return FALSE;
4476c4519
< return false;
---
> return FALSE;
4521c4564
< copy = false;
---
> copy = FALSE;
4530c4573
< copy = true;
---
> copy = TRUE;
4535c4578
< return false;
---
> return FALSE;
4549c4592
< return false;
---
> return FALSE;
4554c4597
< return false;
---
> return FALSE;
4558c4601
< return true;
---
> return TRUE;
4564c4607
< static boolean
---
> static bfd_boolean
4581c4624
< return true;
---
> return TRUE;
4597c4640
< return true;
---
> return TRUE;
4599c4642
< h->written = true;
---
> h->written = TRUE;
4606,4607c4649,4650
< false, false) == NULL)))
< return true;
---
> FALSE, FALSE) == NULL)))
> return TRUE;
4615c4658
< return true;
---
> return TRUE;
4619c4662
< return true;
---
> return TRUE;
4656c4699
< return true;
---
> return TRUE;
4663c4706
< false);
---
> FALSE);
4684c4727
< return true;
---
> return TRUE;
4689c4732
< static boolean
---
> static bfd_boolean
4706c4749
< return false;
---
> return FALSE;
4719c4762
< return false;
---
> return FALSE;
4729c4772
< return false;
---
> return FALSE;
4736c4779
< return false;
---
> return FALSE;
4745c4788
< return false;
---
> return FALSE;
4747c4790
< /* If we are producing relocateable output, the relocs were
---
> /* If we are producing relocatable output, the relocs were
4749c4792
< if (finfo->info->relocateable && rel_size > 0)
---
> if (finfo->info->relocatable && rel_size > 0)
4752c4795
< return false;
---
> return FALSE;
4754c4797
< return false;
---
> return FALSE;
4766c4809
< return true;
---
> return TRUE;
4796c4839
< static boolean
---
> static bfd_boolean
4806,4810c4849,4852
< boolean (*check_dynamic_reloc) PARAMS ((struct bfd_link_info *,
< bfd *, asection *,
< struct aout_link_hash_entry *,
< PTR, bfd_byte *, boolean *,
< bfd_vma *));
---
> bfd_boolean (*check_dynamic_reloc)
> PARAMS ((struct bfd_link_info *, bfd *, asection *,
> struct aout_link_hash_entry *, PTR, bfd_byte *, bfd_boolean *,
> bfd_vma *));
4812c4854
< boolean relocateable;
---
> bfd_boolean relocatable;
4828c4870
< relocateable = finfo->info->relocateable;
---
> relocatable = finfo->info->relocatable;
4897c4939
< if (relocateable)
---
> if (relocatable)
4899c4941
< /* We are generating a relocateable output file, and must
---
> /* We are generating a relocatable output file, and must
4954c4996
< h->written = false;
---
> h->written = FALSE;
4957c4999
< return false;
---
> return FALSE;
4970c5012
< return false;
---
> return FALSE;
5030c5072
< boolean hundef;
---
> bfd_boolean hundef;
5034c5076
< hundef = false;
---
> hundef = FALSE;
5053c5095
< hundef = true;
---
> hundef = TRUE;
5071c5113
< boolean skip;
---
> bfd_boolean skip;
5076c5118
< return false;
---
> return FALSE;
5094,5095c5136,5137
< r_addr, true)))
< return false;
---
> r_addr, TRUE)))
> return FALSE;
5130c5172
< return false;
---
> return FALSE;
5137c5179
< return true;
---
> return TRUE;
5142c5184
< static boolean
---
> static bfd_boolean
5152,5156c5194,5197
< boolean (*check_dynamic_reloc) PARAMS ((struct bfd_link_info *,
< bfd *, asection *,
< struct aout_link_hash_entry *,
< PTR, bfd_byte *, boolean *,
< bfd_vma *));
---
> bfd_boolean (*check_dynamic_reloc)
> PARAMS ((struct bfd_link_info *, bfd *, asection *,
> struct aout_link_hash_entry *, PTR, bfd_byte *, bfd_boolean *,
> bfd_vma *));
5158c5199
< boolean relocateable;
---
> bfd_boolean relocatable;
5174c5215
< relocateable = finfo->info->relocateable;
---
> relocatable = finfo->info->relocatable;
5219c5260
< if (relocateable)
---
> if (relocatable)
5221c5262
< /* We are generating a relocateable output file, and must
---
> /* We are generating a relocatable output file, and must
5292c5333
< h->written = false;
---
> h->written = FALSE;
5295c5336
< return false;
---
> return FALSE;
5308c5349
< return false;
---
> return FALSE;
5373c5414
< boolean hundef;
---
> bfd_boolean hundef;
5378c5419
< hundef = false;
---
> hundef = FALSE;
5397c5438
< hundef = true;
---
> hundef = TRUE;
5470c5511
< boolean skip;
---
> bfd_boolean skip;
5475c5516
< return false;
---
> return FALSE;
5497,5498c5538,5539
< r_addr, true)))
< return false;
---
> r_addr, TRUE)))
> return FALSE;
5545c5586
< return false;
---
> return FALSE;
5553c5594
< return true;
---
> return TRUE;
5558c5599
< static boolean
---
> static bfd_boolean
5595c5636
< pr->u.name, false, false, true));
---
> pr->u.name, FALSE, FALSE, TRUE));
5606c5647
< h->written = false;
---
> h->written = FALSE;
5608c5649
< return false;
---
> return FALSE;
5616c5657
< return false;
---
> return FALSE;
5625c5666
< return false;
---
> return FALSE;
5695c5736
< boolean ok;
---
> bfd_boolean ok;
5700c5741
< return false;
---
> return FALSE;
5721c5762
< return false;
---
> return FALSE;
5729c5770
< return false;
---
> return FALSE;
5768c5809
< return false;
---
> return FALSE;
5779c5820
< return true;
---
> return TRUE;