diff options
author | Steve Chamberlain <sac@cygnus> | 1993-03-29 21:56:49 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-03-29 21:56:49 +0000 |
commit | e02eaa59437db22f4d5c79bf8e79afa24f6d4ca3 (patch) | |
tree | f45a59fbf57336b7715bc19bfa160c515643d773 | |
parent | c39b3eba786f1d07e2e62a53ba478f20f62ccb3a (diff) | |
download | gdb-e02eaa59437db22f4d5c79bf8e79afa24f6d4ca3.zip gdb-e02eaa59437db22f4d5c79bf8e79afa24f6d4ca3.tar.gz gdb-e02eaa59437db22f4d5c79bf8e79afa24f6d4ca3.tar.bz2 |
* 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.
-rw-r--r-- | gas/ChangeLog | 9 | ||||
-rw-r--r-- | gas/config/obj-coffbfd.c | 2 | ||||
-rw-r--r-- | gas/config/obj-coffbfd.h | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 9bf50aa..df58170 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 d95dcb9..610a685 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 d73500d..a859f6c 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, ( |