diff options
author | DJ Delorie <dj@redhat.com> | 2002-09-23 11:58:00 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2002-09-23 11:58:00 +0000 |
commit | 823882f588972c260c0fa33ab909b906b98cd021 (patch) | |
tree | f3827469554bb3c9479549770c9e09aa21fa1a00 | |
parent | 8e616ecc6b5f5d7b4972a5a83876140c49d76cd0 (diff) | |
download | gdb-823882f588972c260c0fa33ab909b906b98cd021.zip gdb-823882f588972c260c0fa33ab909b906b98cd021.tar.gz gdb-823882f588972c260c0fa33ab909b906b98cd021.tar.bz2 |
* write.c: Delete set_segment_vma and prototype. Update all callers.
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/write.c | 25 |
2 files changed, 4 insertions, 25 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 19190bc..97dd2cd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2002-09-22 Mark Elbrecht <snowball3@softhome.net> + + * write.c: Delete set_segment_vma and prototype. Update all callers. + 2002-09-21 Alan Modra <amodra@bigpond.net.au> * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL, diff --git a/gas/write.c b/gas/write.c index 4ee6a7d..b4cc7e0 100644 --- a/gas/write.c +++ b/gas/write.c @@ -187,9 +187,6 @@ static void cvt_frag_to_fill PARAMS ((object_headers *, segT, fragS *)); static void remove_subsegs PARAMS ((frchainS *, int, fragS **, fragS **)); static void relax_and_size_all_segments PARAMS ((void)); #endif -#if defined (BFD_ASSEMBLER) && defined (OBJ_COFF) && defined (TE_GO32) -static void set_segment_vma PARAMS ((bfd *, asection *, PTR)); -#endif /* Create a fixS in obstack 'notes'. */ @@ -1375,20 +1372,6 @@ set_symtab () } #endif -#if defined (BFD_ASSEMBLER) && defined (OBJ_COFF) && defined (TE_GO32) -static void -set_segment_vma (abfd, sec, xxx) - bfd *abfd; - asection *sec; - PTR xxx ATTRIBUTE_UNUSED; -{ - static bfd_vma addr = 0; - - bfd_set_section_vma (abfd, sec, addr); - addr += bfd_section_size (abfd, sec); -} -#endif /* BFD_ASSEMBLER && OBJ_COFF && !TE_PE */ - /* Finish the subsegments. After every sub-segment, we fake an ".align ...". This conforms to BSD4.2 brane-damage. We then fake ".fill 0" because that is the kind of frag that requires least @@ -1573,14 +1556,6 @@ write_object_file () /* Relaxation has completed. Freeze all syms. */ finalize_syms = 1; -#if defined (BFD_ASSEMBLER) && defined (OBJ_COFF) && defined (TE_GO32) - /* Now that the segments have their final sizes, run through the - sections and set their vma and lma. !BFD gas sets them, and BFD gas - should too. Currently, only DJGPP uses this code, but other - COFF targets may need to execute this too. */ - bfd_map_over_sections (stdoutput, set_segment_vma, (char *) 0); -#endif - #ifndef BFD_ASSEMBLER /* Crawl the symbol chain. |