mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 09:49:43 +08:00
fix some compilation warnings from sun cc
This commit is contained in:
@ -1,3 +1,15 @@
|
|||||||
|
Wed Jul 12 17:55:55 1995 Ken Raeburn <raeburn@cygnus.com>
|
||||||
|
|
||||||
|
* elflink.h (elf_link_add_object_symbols): Cast return value from
|
||||||
|
bfd_alloc.
|
||||||
|
|
||||||
|
* elfcode.h (size_info): Don't use "&" before function names.
|
||||||
|
|
||||||
|
Wed Jul 12 00:16:48 1995 Ken Raeburn <raeburn@kr-pc.cygnus.com>
|
||||||
|
|
||||||
|
* libelf.h (elf_backend_data): Use unsigned, not unsigned char,
|
||||||
|
for bitfields.
|
||||||
|
|
||||||
Tue Jul 11 15:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
|
Tue Jul 11 15:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
|
* elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
|
||||||
|
@ -27,7 +27,7 @@ GNU General Public License for more details.
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
/* Problems and other issues to resolve.
|
/* Problems and other issues to resolve.
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ void
|
|||||||
elf_swap_symbol_out (abfd, src, cdst)
|
elf_swap_symbol_out (abfd, src, cdst)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
Elf_Internal_Sym *src;
|
Elf_Internal_Sym *src;
|
||||||
char *cdst;
|
PTR cdst;
|
||||||
{
|
{
|
||||||
Elf_External_Sym *dst = (Elf_External_Sym *) cdst;
|
Elf_External_Sym *dst = (Elf_External_Sym *) cdst;
|
||||||
bfd_h_put_32 (abfd, src->st_name, dst->st_name);
|
bfd_h_put_32 (abfd, src->st_name, dst->st_name);
|
||||||
@ -1263,10 +1263,10 @@ const struct elf_size_info NAME(_bfd_elf,size_info) = {
|
|||||||
|
|
||||||
ARCH_SIZE, FILE_ALIGN,
|
ARCH_SIZE, FILE_ALIGN,
|
||||||
ELFCLASS, EV_CURRENT,
|
ELFCLASS, EV_CURRENT,
|
||||||
&write_out_phdrs,
|
write_out_phdrs,
|
||||||
&write_shdrs_and_ehdr,
|
write_shdrs_and_ehdr,
|
||||||
&write_relocs,
|
write_relocs,
|
||||||
&elf_swap_symbol_out,
|
elf_swap_symbol_out,
|
||||||
&elf_slurp_reloc_table,
|
elf_slurp_reloc_table,
|
||||||
&elf_slurp_symbol_table,
|
elf_slurp_symbol_table,
|
||||||
};
|
};
|
||||||
|
@ -397,7 +397,8 @@ elf_link_add_object_symbols (abfd, info)
|
|||||||
struct bfd_elf_link_needed_list *n, **pn;
|
struct bfd_elf_link_needed_list *n, **pn;
|
||||||
char *fnm, *anm;
|
char *fnm, *anm;
|
||||||
|
|
||||||
n = bfd_alloc (abfd,
|
n = (struct bfd_elf_link_needed_list *)
|
||||||
|
bfd_alloc (abfd,
|
||||||
sizeof (struct bfd_elf_link_needed_list));
|
sizeof (struct bfd_elf_link_needed_list));
|
||||||
fnm = bfd_elf_string_from_elf_section (abfd, link,
|
fnm = bfd_elf_string_from_elf_section (abfd, link,
|
||||||
dyn.d_un.d_val);
|
dyn.d_un.d_val);
|
||||||
|
Reference in New Issue
Block a user