From: Steve Chamberlain Date: Mon, 29 Mar 1993 21:56:49 +0000 (+0000) Subject: * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e02eaa59437db22f4d5c79bf8e79afa24f6d4ca3;p=binutils-gdb.git * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs wasn't being stored into scnhdr. * config/obj-coffbfd.h: Add prototype of s_get_segment. * read.c (TC_START_LABEL): Default definition. (read_a_source_file): Use TC_START_LABEL macro to work out if a label has been seen. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 9bf50aab522..df581703af6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +Mon Mar 29 13:47:33 1993 Steve Chamberlain (sac@thepub.cygnus.com) + + * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs + wasn't being stored into scnhdr. + * config/obj-coffbfd.h: Add prototype of s_get_segment. + * read.c (TC_START_LABEL): Default definition. + (read_a_source_file): Use TC_START_LABEL macro to work out + if a label has been seen. + Mon Mar 29 12:56:56 1993 Ian Lance Taylor (ian@cygnus.com) * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index d95dcb9c841..610a6851a96 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -451,13 +451,13 @@ DEFUN (do_relocs_for, (abfd, h, file_cursor), /* Fill in section header info. */ segment_info[idx].scnhdr.s_relptr = *file_cursor; *file_cursor += external_reloc_size; + segment_info[idx].scnhdr.s_nreloc = nrelocs; } else { /* No relocs */ segment_info[idx].scnhdr.s_relptr = 0; } - segment_info[idx].scnhdr.s_nreloc = 0; } } /* Set relocation_size field in file headers */ diff --git a/gas/config/obj-coffbfd.h b/gas/config/obj-coffbfd.h index d73500d461a..a859f6c9947 100644 --- a/gas/config/obj-coffbfd.h +++ b/gas/config/obj-coffbfd.h @@ -483,7 +483,7 @@ void EXFUN (c_dot_file_symbol, (char *filename)); void EXFUN (obj_extra_stuff, (object_headers * headers)); void EXFUN (stack_delete, (stack * st)); - +segT EXFUN (s_get_segment,(struct symbol * ptr)); void EXFUN (c_section_header, (