/[gcl]/gcl/o/sfaslbfd.c
ViewVC logotype

Diff of /gcl/o/sfaslbfd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12.4.1.2.4 by camm, Sat Mar 20 01:38:25 2004 UTC revision 1.12.4.1.2.4.12.1 by camm, Sat Jan 15 16:26:43 2005 UTC
# Line 263  fasload(object faslfile) { Line 263  fasload(object faslfile) {
263    
264      current=round_up(current,1<<s->alignment_power);      current=round_up(current,1<<s->alignment_power);
265    
266      current+=s->_raw_size;      current+=bfd_section_size(b,s);
267    
268    }    }
269    curr_size=(unsigned long)current;    curr_size=(unsigned long)current;
# Line 288  fasload(object faslfile) { Line 288  fasload(object faslfile) {
288    
289      m=round_up(m,1<<s->alignment_power);      m=round_up(m,1<<s->alignment_power);
290      s->output_section->vma=(unsigned long)m;      s->output_section->vma=(unsigned long)m;
291      m+=s->_raw_size;      m+=bfd_section_size(b,s);
292                            
293    }    }
294    
# Line 306  fasload(object faslfile) { Line 306  fasload(object faslfile) {
306      struct bfd_link_hash_entry *h;      struct bfd_link_hash_entry *h;
307    
308      if (!strncmp(entry_name_ptr,q[u]->name,5)) {      if (!strncmp(entry_name_ptr,q[u]->name,5)) {
309        init_address=q[u]->value;        init_address=q[u]->value+(q[u]->section->output_section->vma-(unsigned long)memory->cfd.cfd_start);
310        continue;        continue;
311      }      }
312    
# Line 344  fasload(object faslfile) { Line 344  fasload(object faslfile) {
344    
345     for (s=b->sections;s;s=s->next) {     for (s=b->sections;s;s=s->next) {
346            
347         unsigned long ss=bfd_section_size(b,s);
348    
349       if (!(s->flags & SEC_LOAD))       if (!(s->flags & SEC_LOAD))
350         continue;         continue;
351            
# Line 353  fasload(object faslfile) { Line 355  fasload(object faslfile) {
355                                               v,0,q))                                               v,0,q))
356         FEerror("Cannot get relocated section contents\n",0);         FEerror("Cannot get relocated section contents\n",0);
357    
358       memcpy((void *)(unsigned long)s->output_section->vma,v,s->_raw_size);       memcpy((void *)(unsigned long)s->output_section->vma,v,ss);
359            
360     }     }
361    
362   }   }
363        
364    dum.sm.sm_object1=faslfile;    dum.sm.sm_object1=faslfile;

Legend:
Removed from v.1.12.4.1.2.4  
changed lines
  Added in v.1.12.4.1.2.4.12.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26