diff options
author | Alan Modra <amodra@gmail.com> | 2003-11-04 10:41:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-11-04 10:41:52 +0000 |
commit | 0f867abe4ab1bf1b680a54d930736b5180ecb7ab (patch) | |
tree | 993cfde47c31baa31d201eb6970d96b9b8a72e8f | |
parent | 63bc6f6c391c4e5a61044cf33422cfe81893487c (diff) | |
download | gdb-0f867abe4ab1bf1b680a54d930736b5180ecb7ab.zip gdb-0f867abe4ab1bf1b680a54d930736b5180ecb7ab.tar.gz gdb-0f867abe4ab1bf1b680a54d930736b5180ecb7ab.tar.bz2 |
* aout-adobe.c (aout_adobe_set_section_contents): Constify location.
* aoutx.h (NAME(aout,set_section_contents)): Ditto.
* bfd-in2.h: Regenerate.
* binary.c (binary_set_section_contents): Ditto.
* bout.c (b_out_set_section_contents): Ditto.
* coff-tic54x.c (tic54x_set_section_contents): Ditto.
* coffcode.h (coff_set_section_contents): Ditto.
* ecoff.c (_bfd_ecoff_set_section_contents): Ditto.
* elf-bfd.h (_bfd_elf_set_section_contents): Ditto.
* elf.c (_bfd_elf_set_section_contents): Ditto.
* elfxx-mips.c (_bfd_mips_elf_set_section_contents): Ditto.
* elfxx-mips.h (_bfd_mips_elf_set_section_contents): Ditto.
* i386msdos.c (msdos_set_section_contents): Ditto.
* ieee.c (ieee_set_section_contents): Ditto.
* ihex.c (ihex_set_section_contents): Ditto.
* libaout.h (NAME(aout,set_section_contents)): Ditto.
* libbfd-in.h (_bfd_nowrite_set_section_contents): Ditto.
(_bfd_generic_set_section_contents): Ditto.
* libbfd.h: Regenerate.
* libbfd.c (_bfd_generic_set_section_contents): Ditto.
* libecoff.h (_bfd_ecoff_set_section_contents): Ditto.
* libnlm.h (nlmNAME(set_section_contents)): Ditto.
(struct nlm_backend_data <nlm_mangle_relocs>): Ditto.
* mmo.c (mmo_set_section_contents): Ditto.
* nlm32-alpha.c (nlm_alpha_mangle_relocs): Ditto.
* nlm32-i386.c (nlm_i386_mangle_relocs): Ditto.
* nlm32-ppc.c (nlm_powerpc_mangle_relocs): Ditto.
* nlm32-sparc.c (nlm_sparc_mangle_relocs): Ditto.
* nlmcode.h (nlm_set_section_contents): Ditto.
* oasys.c (oasys_set_section_contents): Ditto.
* pdp11.c (NAME(aout,set_section_contents)): Ditto.
* ppcboot.c (ppcboot_set_section_contents): Ditto.
* srec.c (srec_set_section_contents): Ditto.
* targets.c (BFD_JUMP_TABLE_WRITE <_bfd_set_section_contents>): Ditto.
* tekhex.c (tekhex_set_section_contents): Ditto.
(move_section_contents): Ditto.
* versados.c (versados_set_section_contents): Ditto.
* vms-misc.c (_bfd_save_vms_section): Ditto.
* vms.c (vms_set_section_contents): Ditto.
* vms.h (_bfd_save_vms_section): Ditto.
-rw-r--r-- | bfd/ChangeLog | 43 | ||||
-rw-r--r-- | bfd/aout-adobe.c | 6 | ||||
-rw-r--r-- | bfd/aoutx.h | 2 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 2 | ||||
-rw-r--r-- | bfd/binary.c | 7 | ||||
-rw-r--r-- | bfd/bout.c | 4 | ||||
-rw-r--r-- | bfd/coff-tic54x.c | 6 | ||||
-rw-r--r-- | bfd/coffcode.h | 4 | ||||
-rw-r--r-- | bfd/ecoff.c | 2 | ||||
-rw-r--r-- | bfd/elf-bfd.h | 2 | ||||
-rw-r--r-- | bfd/elf.c | 2 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 2 | ||||
-rw-r--r-- | bfd/elfxx-mips.h | 2 | ||||
-rw-r--r-- | bfd/i386msdos.c | 8 | ||||
-rw-r--r-- | bfd/ieee.c | 4 | ||||
-rw-r--r-- | bfd/ihex.c | 6 | ||||
-rw-r--r-- | bfd/libaout.h | 4 | ||||
-rw-r--r-- | bfd/libbfd-in.h | 4 | ||||
-rw-r--r-- | bfd/libbfd.c | 2 | ||||
-rw-r--r-- | bfd/libbfd.h | 4 | ||||
-rw-r--r-- | bfd/libecoff.h | 4 | ||||
-rw-r--r-- | bfd/libnlm.h | 7 | ||||
-rw-r--r-- | bfd/mmo.c | 4 | ||||
-rw-r--r-- | bfd/nlm32-alpha.c | 7 | ||||
-rw-r--r-- | bfd/nlm32-i386.c | 7 | ||||
-rw-r--r-- | bfd/nlm32-ppc.c | 7 | ||||
-rw-r--r-- | bfd/nlm32-sparc.c | 7 | ||||
-rw-r--r-- | bfd/nlmcode.h | 6 | ||||
-rw-r--r-- | bfd/oasys.c | 4 | ||||
-rw-r--r-- | bfd/pdp11.c | 2 | ||||
-rw-r--r-- | bfd/ppcboot.c | 6 | ||||
-rw-r--r-- | bfd/srec.c | 6 | ||||
-rw-r--r-- | bfd/targets.c | 2 | ||||
-rw-r--r-- | bfd/tekhex.c | 10 | ||||
-rw-r--r-- | bfd/versados.c | 4 | ||||
-rw-r--r-- | bfd/vms-misc.c | 4 | ||||
-rw-r--r-- | bfd/vms.c | 4 | ||||
-rw-r--r-- | bfd/vms.h | 7 |
38 files changed, 129 insertions, 85 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c050320..835a8af 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,48 @@ 2003-11-04 Alan Modra <amodra@bigpond.net.au> + * aout-adobe.c (aout_adobe_set_section_contents): Constify location. + * aoutx.h (NAME(aout,set_section_contents)): Ditto. + * bfd-in2.h: Regenerate. + * binary.c (binary_set_section_contents): Ditto. + * bout.c (b_out_set_section_contents): Ditto. + * coff-tic54x.c (tic54x_set_section_contents): Ditto. + * coffcode.h (coff_set_section_contents): Ditto. + * ecoff.c (_bfd_ecoff_set_section_contents): Ditto. + * elf-bfd.h (_bfd_elf_set_section_contents): Ditto. + * elf.c (_bfd_elf_set_section_contents): Ditto. + * elfxx-mips.c (_bfd_mips_elf_set_section_contents): Ditto. + * elfxx-mips.h (_bfd_mips_elf_set_section_contents): Ditto. + * i386msdos.c (msdos_set_section_contents): Ditto. + * ieee.c (ieee_set_section_contents): Ditto. + * ihex.c (ihex_set_section_contents): Ditto. + * libaout.h (NAME(aout,set_section_contents)): Ditto. + * libbfd-in.h (_bfd_nowrite_set_section_contents): Ditto. + (_bfd_generic_set_section_contents): Ditto. + * libbfd.h: Regenerate. + * libbfd.c (_bfd_generic_set_section_contents): Ditto. + * libecoff.h (_bfd_ecoff_set_section_contents): Ditto. + * libnlm.h (nlmNAME(set_section_contents)): Ditto. + (struct nlm_backend_data <nlm_mangle_relocs>): Ditto. + * mmo.c (mmo_set_section_contents): Ditto. + * nlm32-alpha.c (nlm_alpha_mangle_relocs): Ditto. + * nlm32-i386.c (nlm_i386_mangle_relocs): Ditto. + * nlm32-ppc.c (nlm_powerpc_mangle_relocs): Ditto. + * nlm32-sparc.c (nlm_sparc_mangle_relocs): Ditto. + * nlmcode.h (nlm_set_section_contents): Ditto. + * oasys.c (oasys_set_section_contents): Ditto. + * pdp11.c (NAME(aout,set_section_contents)): Ditto. + * ppcboot.c (ppcboot_set_section_contents): Ditto. + * srec.c (srec_set_section_contents): Ditto. + * targets.c (BFD_JUMP_TABLE_WRITE <_bfd_set_section_contents>): Ditto. + * tekhex.c (tekhex_set_section_contents): Ditto. + (move_section_contents): Ditto. + * versados.c (versados_set_section_contents): Ditto. + * vms-misc.c (_bfd_save_vms_section): Ditto. + * vms.c (vms_set_section_contents): Ditto. + * vms.h (_bfd_save_vms_section): Ditto. + +2003-11-04 Alan Modra <amodra@bigpond.net.au> + * elf64-ppc.c (ppc_size_one_stub): Size relbrlt. Accept info arg rather than htab. (ppc64_elf_size_stubs): Adjust ppc_size_one_stub traversal. Zero diff --git a/bfd/aout-adobe.c b/bfd/aout-adobe.c index b064650..052e938 100644 --- a/bfd/aout-adobe.c +++ b/bfd/aout-adobe.c @@ -1,6 +1,6 @@ /* BFD back-end for a.out.adobe binaries. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, - 2002 + 2002, 2003 Free Software Foundation, Inc. Written by Cygnus Support. Based on bout.c. @@ -47,7 +47,7 @@ static bfd_boolean aout_adobe_mkobject static bfd_boolean aout_adobe_write_object_contents PARAMS ((bfd *)); static bfd_boolean aout_adobe_set_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); static bfd_boolean aout_adobe_set_arch_mach PARAMS ((bfd *, enum bfd_architecture, unsigned long)); static int aout_adobe_sizeof_headers @@ -415,7 +415,7 @@ static bfd_boolean aout_adobe_set_section_contents (abfd, section, location, offset, count) bfd *abfd; asection *section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/aoutx.h b/bfd/aoutx.h index aaa2b6d..6c20bd0 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -1265,7 +1265,7 @@ bfd_boolean NAME(aout,set_section_contents) (abfd, section, location, offset, count) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index fbd05ab..5c17a7a 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -4285,7 +4285,7 @@ typedef struct bfd_target bfd_boolean (*_bfd_set_arch_mach) (bfd *, enum bfd_architecture, unsigned long); bfd_boolean (*_bfd_set_section_contents) - (bfd *, sec_ptr, void *, file_ptr, bfd_size_type); + (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type); /* Routines used by the linker. */ #define BFD_JUMP_TABLE_LINK(NAME) \ diff --git a/bfd/binary.c b/bfd/binary.c index a6a780e..65f46af 100644 --- a/bfd/binary.c +++ b/bfd/binary.c @@ -1,6 +1,5 @@ /* BFD back-end for binary objects. - Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003 + Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support, <ian@cygnus.com> @@ -51,7 +50,7 @@ static char *mangle_name PARAMS ((bfd *, char *)); static long binary_canonicalize_symtab PARAMS ((bfd *, asymbol **)); static void binary_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *)); static bfd_boolean binary_set_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); static int binary_sizeof_headers PARAMS ((bfd *, bfd_boolean)); /* Set by external programs - specifies the BFD architecture and @@ -257,7 +256,7 @@ static bfd_boolean binary_set_section_contents (abfd, sec, data, offset, size) bfd *abfd; asection *sec; - PTR data; + const PTR data; file_ptr offset; bfd_size_type size; { @@ -61,7 +61,7 @@ static int b_out_sizeof_headers static bfd_boolean b_out_set_arch_mach PARAMS ((bfd *, enum bfd_architecture, unsigned long)); static bfd_boolean b_out_set_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); static long b_out_get_reloc_upper_bound PARAMS ((bfd *, sec_ptr)); static long b_out_canonicalize_reloc @@ -983,7 +983,7 @@ static bfd_boolean b_out_set_section_contents (abfd, section, location, offset, count) bfd *abfd; asection *section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/coff-tic54x.c b/bfd/coff-tic54x.c index fdf1b5a..5d8ccc2 100644 --- a/bfd/coff-tic54x.c +++ b/bfd/coff-tic54x.c @@ -1,5 +1,5 @@ /* BFD back-end for TMS320C54X coff binaries. - Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Timothy Wall (twall@cygnus.com) This file is part of BFD, the Binary File Descriptor library. @@ -35,7 +35,7 @@ static void tic54x_reloc_processing static bfd_reloc_status_type tic54x_relocation PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **)); static bfd_boolean tic54x_set_section_contents - PARAMS ((bfd *, sec_ptr, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const PTR, file_ptr, bfd_size_type)); static reloc_howto_type *coff_tic54x_rtype_to_howto PARAMS ((bfd *, asection *, struct internal_reloc *, struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *)); static bfd_vma tic54x_getl32 @@ -345,7 +345,7 @@ static bfd_boolean tic54x_set_section_contents (abfd, section, location, offset, bytes_to_do) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type bytes_to_do; { diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f5262f6..924bb34 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -333,7 +333,7 @@ static bfd_boolean coff_compute_section_file_positions static bfd_boolean coff_write_object_contents PARAMS ((bfd *)) ATTRIBUTE_UNUSED; static bfd_boolean coff_set_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); static PTR buy_and_read PARAMS ((bfd *, file_ptr, bfd_size_type)); static bfd_boolean coff_slurp_line_table @@ -4271,7 +4271,7 @@ static bfd_boolean coff_set_section_contents (abfd, section, location, offset, count) bfd * abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/ecoff.c b/bfd/ecoff.c index 4f13c39..b45f168 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -2262,7 +2262,7 @@ bfd_boolean _bfd_ecoff_set_section_contents (abfd, section, location, offset, count) bfd *abfd; asection *section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 3353cde..8059b4e 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1348,7 +1348,7 @@ extern bfd_boolean _bfd_elf_write_object_contents extern bfd_boolean _bfd_elf_write_corefile_contents (bfd *); extern bfd_boolean _bfd_elf_set_section_contents - (bfd *, sec_ptr, void *, file_ptr, bfd_size_type); + (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type); extern long _bfd_elf_get_symtab_upper_bound (bfd *); extern long _bfd_elf_canonicalize_symtab @@ -6096,7 +6096,7 @@ _bfd_elf_sizeof_headers (bfd *abfd, bfd_boolean reloc) bfd_boolean _bfd_elf_set_section_contents (bfd *abfd, sec_ptr section, - void *location, + const void *location, file_ptr offset, bfd_size_type count) { diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 6a6787f..51b1b59 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -7913,7 +7913,7 @@ bfd_boolean _bfd_mips_elf_set_section_contents (abfd, section, location, offset, count) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/elfxx-mips.h b/bfd/elfxx-mips.h index 71cdc07..b4230eb 100644 --- a/bfd/elfxx-mips.h +++ b/bfd/elfxx-mips.h @@ -80,7 +80,7 @@ extern bfd_boolean _bfd_mips_elf_find_nearest_line PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **, const char **, unsigned int *)); extern bfd_boolean _bfd_mips_elf_set_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); extern bfd_byte *_bfd_elf_mips_get_relocated_section_contents PARAMS ((bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *, bfd_boolean, asymbol **)); diff --git a/bfd/i386msdos.c b/bfd/i386msdos.c index 9d5cb05..059466b 100644 --- a/bfd/i386msdos.c +++ b/bfd/i386msdos.c @@ -1,6 +1,6 @@ /* BFD back-end for MS-DOS executables. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2001, 2002 - Free Software Foundation, Inc. + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2001, 2002, + 2003 Free Software Foundation, Inc. Written by Bryan Ford of the University of Utah. Contributed by the Center for Software Science at the @@ -61,7 +61,7 @@ static int msdos_sizeof_headers static bfd_boolean msdos_write_object_contents PARAMS ((bfd *)); static bfd_boolean msdos_set_section_contents - PARAMS ((bfd *, sec_ptr, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const PTR, file_ptr, bfd_size_type)); static int msdos_sizeof_headers (abfd, exec) @@ -139,7 +139,7 @@ static bfd_boolean msdos_set_section_contents (abfd, section, location, offset, count) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { @@ -160,7 +160,7 @@ static bfd_boolean ieee_write_data_part static bfd_boolean init_for_output PARAMS ((bfd *)); static bfd_boolean ieee_set_section_contents - PARAMS ((bfd *, sec_ptr, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const PTR, file_ptr, bfd_size_type)); static bfd_boolean ieee_write_external_part PARAMS ((bfd *)); static bfd_boolean ieee_write_me_part @@ -3440,7 +3440,7 @@ static bfd_boolean ieee_set_section_contents (abfd, section, location, offset, count) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { @@ -1,5 +1,5 @@ /* BFD back-end for Intel Hex objects. - Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002 + Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Ian Lance Taylor of Cygnus Support <ian@cygnus.com>. @@ -142,7 +142,7 @@ static bfd_boolean ihex_read_section static bfd_boolean ihex_get_section_contents PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); static bfd_boolean ihex_set_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); static bfd_boolean ihex_write_record PARAMS ((bfd *, size_t, unsigned int, unsigned int, bfd_byte *)); static bfd_boolean ihex_write_object_contents @@ -699,7 +699,7 @@ static bfd_boolean ihex_set_section_contents (abfd, section, location, offset, count) bfd *abfd; asection *section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/libaout.h b/bfd/libaout.h index 70d4357..2b93dbf 100644 --- a/bfd/libaout.h +++ b/bfd/libaout.h @@ -1,6 +1,6 @@ /* BFD back-end data structures for a.out (and similar) files. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002 + 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Cygnus Support. @@ -513,7 +513,7 @@ extern bfd_boolean NAME(aout,new_section_hook) PARAMS ((bfd *, asection *)); extern bfd_boolean NAME(aout,set_section_contents) - PARAMS ((bfd *, sec_ptr, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const PTR, file_ptr, bfd_size_type)); extern asymbol * NAME(aout,make_empty_symbol) PARAMS ((bfd *)); diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 2d54b27..0ec808d 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -326,7 +326,7 @@ extern bfd_boolean _bfd_archive_coff_construct_extended_name_table ((bfd_boolean (*) (bfd *, enum bfd_architecture, unsigned long)) \ bfd_false) #define _bfd_nowrite_set_section_contents \ - ((bfd_boolean (*) (bfd *, asection *, void *, file_ptr, bfd_size_type)) \ + ((bfd_boolean (*) (bfd *, asection *, const void *, file_ptr, bfd_size_type)) \ bfd_false) /* Generic routines to use for BFD_JUMP_TABLE_WRITE. Use @@ -334,7 +334,7 @@ extern bfd_boolean _bfd_archive_coff_construct_extended_name_table #define _bfd_generic_set_arch_mach bfd_default_set_arch_mach extern bfd_boolean _bfd_generic_set_section_contents - (bfd *, asection *, void *, file_ptr, bfd_size_type); + (bfd *, asection *, const void *, file_ptr, bfd_size_type); /* Routines to use for BFD_JUMP_TABLE_LINK for targets which do not support linking. Use BFD_JUMP_TABLE_LINK (_bfd_nolink). */ diff --git a/bfd/libbfd.c b/bfd/libbfd.c index 50bd215..abcf44f 100644 --- a/bfd/libbfd.c +++ b/bfd/libbfd.c @@ -771,7 +771,7 @@ _bfd_generic_get_section_contents_in_window bfd_boolean _bfd_generic_set_section_contents (bfd *abfd, sec_ptr section, - void *location, + const void *location, file_ptr offset, bfd_size_type count) { diff --git a/bfd/libbfd.h b/bfd/libbfd.h index a8f8b2c..b40a249 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -331,7 +331,7 @@ extern bfd_boolean _bfd_archive_coff_construct_extended_name_table ((bfd_boolean (*) (bfd *, enum bfd_architecture, unsigned long)) \ bfd_false) #define _bfd_nowrite_set_section_contents \ - ((bfd_boolean (*) (bfd *, asection *, void *, file_ptr, bfd_size_type)) \ + ((bfd_boolean (*) (bfd *, asection *, const void *, file_ptr, bfd_size_type)) \ bfd_false) /* Generic routines to use for BFD_JUMP_TABLE_WRITE. Use @@ -339,7 +339,7 @@ extern bfd_boolean _bfd_archive_coff_construct_extended_name_table #define _bfd_generic_set_arch_mach bfd_default_set_arch_mach extern bfd_boolean _bfd_generic_set_section_contents - (bfd *, asection *, void *, file_ptr, bfd_size_type); + (bfd *, asection *, const void *, file_ptr, bfd_size_type); /* Routines to use for BFD_JUMP_TABLE_LINK for targets which do not support linking. Use BFD_JUMP_TABLE_LINK (_bfd_nolink). */ diff --git a/bfd/libecoff.h b/bfd/libecoff.h index 517c0bf..161f06c 100644 --- a/bfd/libecoff.h +++ b/bfd/libecoff.h @@ -1,5 +1,5 @@ /* BFD ECOFF object file private structure. - Copyright 1993, 1994, 1995, 1996, 1999, 2001, 2002 + Copyright 1993, 1994, 1995, 1996, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. @@ -324,7 +324,7 @@ extern long _bfd_ecoff_canonicalize_reloc extern bfd_boolean _bfd_ecoff_set_arch_mach PARAMS ((bfd *, enum bfd_architecture, unsigned long)); extern bfd_boolean _bfd_ecoff_set_section_contents - PARAMS ((bfd *, asection *, PTR location, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR location, file_ptr, bfd_size_type)); extern int _bfd_ecoff_sizeof_headers PARAMS ((bfd *abfd, bfd_boolean reloc)); /* ecoff_bfd_get_relocated_section_contents defined by backend. */ diff --git a/bfd/libnlm.h b/bfd/libnlm.h index 9bdba91..0a7b4d9 100644 --- a/bfd/libnlm.h +++ b/bfd/libnlm.h @@ -1,5 +1,5 @@ /* BFD back-end data structures for NLM (NetWare Loadable Modules) files. - Copyright 1993, 1994, 2001, 2002 Free Software Foundation, Inc. + Copyright 1993, 1994, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -76,7 +76,7 @@ extern const bfd_target *nlmNAME(object_p) extern bfd_boolean nlmNAME(set_arch_mach) PARAMS ((bfd *, enum bfd_architecture, unsigned long)); extern bfd_boolean nlmNAME(set_section_contents) - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); extern bfd_boolean nlmNAME(write_object_contents) PARAMS ((bfd *)); @@ -188,7 +188,8 @@ struct nlm_backend_data /* To make objcopy to an i386 NLM work, the i386 backend needs a chance to work over the relocs. This is a bit icky. */ bfd_boolean (*nlm_mangle_relocs) - PARAMS ((bfd *, asection *, PTR data, bfd_vma offset, bfd_size_type count)); + PARAMS ((bfd *, asection *, const PTR data, bfd_vma offset, + bfd_size_type count)); /* Read an import record from abfd. It would be nice if this were in a machine-dependent format, but it doesn't seem to be. */ bfd_boolean (*nlm_read_import) PARAMS ((bfd *, nlmNAME(symbol_type) *)); @@ -408,7 +408,7 @@ static void mmo_get_symbol_info static void mmo_print_symbol PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type)); static bfd_boolean mmo_set_section_contents - PARAMS ((bfd *, sec_ptr, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const PTR, file_ptr, bfd_size_type)); static int mmo_sizeof_headers PARAMS ((bfd *, bfd_boolean)); static long mmo_get_reloc_upper_bound @@ -2613,7 +2613,7 @@ static bfd_boolean mmo_set_section_contents (abfd, sec, location, offset, bytes_to_do) bfd *abfd ATTRIBUTE_UNUSED; sec_ptr sec; - PTR location; + const PTR location; file_ptr offset; bfd_size_type bytes_to_do; { diff --git a/bfd/nlm32-alpha.c b/bfd/nlm32-alpha.c index 7f74b52..bcaa6ab 100644 --- a/bfd/nlm32-alpha.c +++ b/bfd/nlm32-alpha.c @@ -1,5 +1,6 @@ /* Support for 32-bit Alpha NLM (NetWare Loadable Module) - Copyright 1993, 1994, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1993, 1994, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -40,7 +41,7 @@ static bfd_boolean nlm_alpha_write_prefix static bfd_boolean nlm_alpha_read_reloc PARAMS ((bfd *, nlmNAME(symbol_type) *, asection **, arelent *)); static bfd_boolean nlm_alpha_mangle_relocs - PARAMS ((bfd *, asection *, PTR, bfd_vma, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, bfd_vma, bfd_size_type)); static bfd_boolean nlm_alpha_read_import PARAMS ((bfd *, nlmNAME(symbol_type) *)); static bfd_boolean nlm_alpha_write_import @@ -605,7 +606,7 @@ static bfd_boolean nlm_alpha_mangle_relocs (abfd, sec, data, offset, count) bfd *abfd ATTRIBUTE_UNUSED; asection *sec ATTRIBUTE_UNUSED; - PTR data ATTRIBUTE_UNUSED; + const PTR data ATTRIBUTE_UNUSED; bfd_vma offset ATTRIBUTE_UNUSED; bfd_size_type count ATTRIBUTE_UNUSED; { diff --git a/bfd/nlm32-i386.c b/bfd/nlm32-i386.c index ce9595e..d084d18 100644 --- a/bfd/nlm32-i386.c +++ b/bfd/nlm32-i386.c @@ -1,5 +1,6 @@ /* Support for 32-bit i386 NLM (NetWare Loadable Module) - Copyright 1993, 1994, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1993, 1994, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -33,7 +34,7 @@ static bfd_boolean nlm_i386_read_reloc static bfd_boolean nlm_i386_write_import PARAMS ((bfd *, asection *, arelent *)); static bfd_boolean nlm_i386_mangle_relocs - PARAMS ((bfd *, asection *, PTR, bfd_vma, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, bfd_vma, bfd_size_type)); static bfd_boolean nlm_i386_read_import PARAMS ((bfd *, nlmNAME(symbol_type) *)); static bfd_boolean nlm_i386_write_external @@ -247,7 +248,7 @@ static bfd_boolean nlm_i386_mangle_relocs (abfd, sec, data, offset, count) bfd *abfd; asection *sec; - PTR data; + const PTR data; bfd_vma offset; bfd_size_type count; { diff --git a/bfd/nlm32-ppc.c b/bfd/nlm32-ppc.c index 9f5f9c0..aafe2cc 100644 --- a/bfd/nlm32-ppc.c +++ b/bfd/nlm32-ppc.c @@ -1,5 +1,6 @@ /* Support for 32-bit PowerPC NLM (NetWare Loadable Module) - Copyright 1994, 1995, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1994, 1995, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -41,7 +42,7 @@ static bfd_boolean nlm_powerpc_write_prefix static bfd_boolean nlm_powerpc_read_reloc PARAMS ((bfd *, nlmNAME(symbol_type) *, asection **, arelent *)); static bfd_boolean nlm_powerpc_mangle_relocs - PARAMS ((bfd *, asection *, PTR, bfd_vma, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, bfd_vma, bfd_size_type)); static bfd_boolean nlm_powerpc_read_import PARAMS ((bfd *, nlmNAME(symbol_type) *)); @@ -641,7 +642,7 @@ static bfd_boolean nlm_powerpc_mangle_relocs (abfd, sec, data, offset, count) bfd *abfd ATTRIBUTE_UNUSED; asection *sec ATTRIBUTE_UNUSED; - PTR data ATTRIBUTE_UNUSED; + const PTR data ATTRIBUTE_UNUSED; bfd_vma offset ATTRIBUTE_UNUSED; bfd_size_type count ATTRIBUTE_UNUSED; { diff --git a/bfd/nlm32-sparc.c b/bfd/nlm32-sparc.c index 5094ed0..e973d42 100644 --- a/bfd/nlm32-sparc.c +++ b/bfd/nlm32-sparc.c @@ -1,5 +1,6 @@ /* Support for 32-bit SPARC NLM (NetWare Loadable Module) - Copyright 1993, 1994, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1993, 1994, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -33,7 +34,7 @@ static bfd_boolean nlm_sparc_read_reloc static bfd_boolean nlm_sparc_write_reloc PARAMS ((bfd *, asection *, arelent *)); static bfd_boolean nlm_sparc_mangle_relocs - PARAMS ((bfd *, asection *, PTR, bfd_vma, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, bfd_vma, bfd_size_type)); static bfd_boolean nlm_sparc_read_import PARAMS ((bfd *, nlmNAME(symbol_type) *)); static bfd_boolean nlm_sparc_write_import @@ -237,7 +238,7 @@ static bfd_boolean nlm_sparc_mangle_relocs (abfd, sec, data, offset, count) bfd *abfd ATTRIBUTE_UNUSED; asection *sec ATTRIBUTE_UNUSED; - PTR data ATTRIBUTE_UNUSED; + const PTR data ATTRIBUTE_UNUSED; bfd_vma offset ATTRIBUTE_UNUSED; bfd_size_type count ATTRIBUTE_UNUSED; { diff --git a/bfd/nlmcode.h b/bfd/nlmcode.h index bd26d7b..68e4a2a 100644 --- a/bfd/nlmcode.h +++ b/bfd/nlmcode.h @@ -1,5 +1,5 @@ /* NLM (NetWare Loadable Module) executable support for BFD. - Copyright 1993, 1994, 1995, 1998, 2000, 2001, 2002 + Copyright 1993, 1994, 1995, 1998, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Fred Fish @ Cygnus Support, using ELF support as the @@ -1568,7 +1568,7 @@ bfd_boolean nlm_set_section_contents (abfd, section, location, offset, count) bfd *abfd; asection *section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { @@ -1586,7 +1586,7 @@ nlm_set_section_contents (abfd, section, location, offset, count) if (section->reloc_count != 0) { bfd_boolean (*mangle_relocs_func) - PARAMS ((bfd *, asection *, PTR, bfd_vma, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, bfd_vma, bfd_size_type)); mangle_relocs_func = nlm_mangle_relocs_func (abfd); if (mangle_relocs_func != NULL) diff --git a/bfd/oasys.c b/bfd/oasys.c index d1e86ca..8c30197 100644 --- a/bfd/oasys.c +++ b/bfd/oasys.c @@ -70,7 +70,7 @@ static int comp static bfd_boolean oasys_write_object_contents PARAMS ((bfd *)); static bfd_boolean oasys_set_section_contents - PARAMS ((bfd *, sec_ptr, void *, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const void *, file_ptr, bfd_size_type)); static asymbol *oasys_make_empty_symbol PARAMS ((bfd *)); static bfd *oasys_openr_next_archived_file @@ -1346,7 +1346,7 @@ static bfd_boolean oasys_set_section_contents (abfd, section, location, offset, count) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/pdp11.c b/bfd/pdp11.c index a259297..3d009ba 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -1429,7 +1429,7 @@ bfd_boolean NAME(aout,set_section_contents) (abfd, section, location, offset, count) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { diff --git a/bfd/ppcboot.c b/bfd/ppcboot.c index 32093ae..05fb7de 100644 --- a/bfd/ppcboot.c +++ b/bfd/ppcboot.c @@ -1,5 +1,5 @@ /* BFD back-end for PPCbug boot records. - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Michael Meissner, Cygnus Support, <meissner@cygnus.com> @@ -98,7 +98,7 @@ static char *mangle_name PARAMS ((bfd *, char *)); static long ppcboot_canonicalize_symtab PARAMS ((bfd *, asymbol **)); static void ppcboot_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *)); static bfd_boolean ppcboot_set_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type)); static int ppcboot_sizeof_headers PARAMS ((bfd *, bfd_boolean)); static bfd_boolean ppcboot_bfd_print_private_bfd_data PARAMS ((bfd *, PTR)); @@ -364,7 +364,7 @@ static bfd_boolean ppcboot_set_section_contents (abfd, sec, data, offset, size) bfd *abfd; asection *sec; - PTR data; + const PTR data; file_ptr offset; bfd_size_type size; { @@ -1,6 +1,6 @@ /* BFD back-end for s-record objects. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002 + 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>. @@ -132,7 +132,7 @@ static bfd_boolean srec_get_section_contents static bfd_boolean srec_set_arch_mach PARAMS ((bfd *, enum bfd_architecture, unsigned long)); static bfd_boolean srec_set_section_contents - PARAMS ((bfd *, sec_ptr, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const PTR, file_ptr, bfd_size_type)); static bfd_boolean internal_srec_write_object_contents PARAMS ((bfd *, int)); static bfd_boolean srec_write_object_contents PARAMS ((bfd *)); static bfd_boolean symbolsrec_write_object_contents PARAMS ((bfd *)); @@ -872,7 +872,7 @@ static bfd_boolean srec_set_section_contents (abfd, section, location, offset, bytes_to_do) bfd *abfd; sec_ptr section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type bytes_to_do; { diff --git a/bfd/targets.c b/bfd/targets.c index 701d18b..a173857 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -391,7 +391,7 @@ BFD_JUMP_TABLE macros. . bfd_boolean (*_bfd_set_arch_mach) . (bfd *, enum bfd_architecture, unsigned long); . bfd_boolean (*_bfd_set_section_contents) -. (bfd *, sec_ptr, void *, file_ptr, bfd_size_type); +. (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type); . . {* Routines used by the linker. *} .#define BFD_JUMP_TABLE_LINK(NAME) \ diff --git a/bfd/tekhex.c b/bfd/tekhex.c index 8a40558..32c3d97 100644 --- a/bfd/tekhex.c +++ b/bfd/tekhex.c @@ -1,5 +1,5 @@ /* BFD backend for Extended Tektronix Hex Format objects. - Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 + Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>. @@ -110,13 +110,13 @@ static void out PARAMS ((bfd *, int, char *, char *)); static void writesym PARAMS ((char **, const char *)); static void writevalue PARAMS ((char **, bfd_vma)); static bfd_boolean tekhex_set_section_contents - PARAMS ((bfd*, sec_ptr, PTR, file_ptr, bfd_size_type)); + PARAMS ((bfd*, sec_ptr, const PTR, file_ptr, bfd_size_type)); static bfd_boolean tekhex_set_arch_mach PARAMS ((bfd *, enum bfd_architecture, unsigned long)); static bfd_boolean tekhex_get_section_contents PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); static void move_section_contents - PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type, bfd_boolean)); + PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type, bfd_boolean)); static const bfd_target *tekhex_object_p PARAMS ((bfd *)); static bfd_boolean tekhex_mkobject PARAMS ((bfd *)); static long tekhex_get_symtab_upper_bound PARAMS ((bfd *)); @@ -593,7 +593,7 @@ static void move_section_contents (abfd, section, locationp, offset, count, get) bfd *abfd; asection *section; - PTR locationp; + const PTR locationp; file_ptr offset; bfd_size_type count; bfd_boolean get; @@ -672,7 +672,7 @@ static bfd_boolean tekhex_set_section_contents (abfd, section, locationp, offset, bytes_to_do) bfd *abfd; sec_ptr section; - PTR locationp; + const PTR locationp; file_ptr offset; bfd_size_type bytes_to_do; { diff --git a/bfd/versados.c b/bfd/versados.c index 5284733..b978312 100644 --- a/bfd/versados.c +++ b/bfd/versados.c @@ -55,7 +55,7 @@ static bfd_boolean versados_pass_2 PARAMS ((bfd *)); static bfd_boolean versados_get_section_contents PARAMS ((bfd *, asection *, void *, file_ptr, bfd_size_type)); static bfd_boolean versados_set_section_contents - PARAMS ((bfd *, sec_ptr, void *, file_ptr, bfd_size_type)); + PARAMS ((bfd *, sec_ptr, const void *, file_ptr, bfd_size_type)); static int versados_sizeof_headers PARAMS ((bfd *, bfd_boolean)); static long int versados_get_symtab_upper_bound PARAMS ((bfd *)); static long int versados_canonicalize_symtab PARAMS ((bfd *, asymbol **)); @@ -713,7 +713,7 @@ static bfd_boolean versados_set_section_contents (abfd, section, location, offset, bytes_to_do) bfd *abfd ATTRIBUTE_UNUSED; sec_ptr section ATTRIBUTE_UNUSED; - PTR location ATTRIBUTE_UNUSED; + const PTR location ATTRIBUTE_UNUSED; file_ptr offset ATTRIBUTE_UNUSED; bfd_size_type bytes_to_do ATTRIBUTE_UNUSED; { diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index 86b84d7..b6f3042 100644 --- a/bfd/vms-misc.c +++ b/bfd/vms-misc.c @@ -1,6 +1,6 @@ /* vms-misc.c -- Miscellaneous functions for VAX (openVMS/VAX) and EVAX (openVMS/Alpha) files. - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Klaus K"ampf (kkaempf@rmi.de) @@ -612,7 +612,7 @@ bfd_boolean _bfd_save_vms_section (abfd, section, data, offset, count) bfd *abfd; sec_ptr section; - PTR data; + const PTR data; file_ptr offset; bfd_size_type count; { @@ -125,7 +125,7 @@ static const struct reloc_howto_struct *vms_bfd_reloc_type_lookup static bfd_boolean vms_set_arch_mach PARAMS ((bfd *abfd, enum bfd_architecture arch, unsigned long mach)); static bfd_boolean vms_set_section_contents - PARAMS ((bfd *abfd, asection *section, PTR location, file_ptr offset, + PARAMS ((bfd *abfd, asection *section, const PTR location, file_ptr offset, bfd_size_type count)); static int vms_sizeof_headers PARAMS ((bfd *abfd, bfd_boolean reloc)); @@ -1659,7 +1659,7 @@ static bfd_boolean vms_set_section_contents (abfd, section, location, offset, count) bfd *abfd; asection *section; - PTR location; + const PTR location; file_ptr offset; bfd_size_type count; { @@ -1,6 +1,6 @@ #undef vms /* vms.h -- Header file for VMS (Alpha and Vax) support. - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by Klaus K"ampf (kkaempf@rmi.de) @@ -505,9 +505,6 @@ typedef struct _vms_section { struct _vms_section *next; } vms_section; -extern bfd_boolean _bfd_save_vms_section - PARAMS ((bfd *abfd, asection *section, PTR data, file_ptr offset, - bfd_size_type count)); extern vms_section *_bfd_get_vms_section PARAMS ((bfd *abfd, int index)); typedef struct _vms_reloc { @@ -649,7 +646,7 @@ extern void _bfd_vms_push PARAMS ((bfd *abfd, uquad val, int psect)); extern uquad _bfd_vms_pop PARAMS ((bfd *abfd, int *psect)); extern bfd_boolean _bfd_save_vms_section - PARAMS ((bfd *abfd, asection *section, PTR data, file_ptr offset, + PARAMS ((bfd *abfd, asection *section, const PTR data, file_ptr offset, bfd_size_type count)); extern void _bfd_vms_output_begin PARAMS ((bfd *abfd, int rectype, int rechead)); |