mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
* config/obj-coffbfd.c (fill_section): Don't set vaddr here. (write_object_file): Set it here instead, so that fixup_segment can see the correct value.
This commit is contained in:
@ -492,7 +492,6 @@ DEFUN (fill_section, (abfd, h, file_cursor),
|
|||||||
s->s_scnptr = *file_cursor;
|
s->s_scnptr = *file_cursor;
|
||||||
}
|
}
|
||||||
know (s->s_paddr == paddr);
|
know (s->s_paddr == paddr);
|
||||||
s->s_vaddr = paddr;
|
|
||||||
|
|
||||||
s->s_flags = STYP_REG;
|
s->s_flags = STYP_REG;
|
||||||
if (strcmp (s->s_name, ".text") == 0)
|
if (strcmp (s->s_name, ".text") == 0)
|
||||||
@ -1861,6 +1860,7 @@ DEFUN_VOID (write_object_file)
|
|||||||
long size;
|
long size;
|
||||||
|
|
||||||
segment_info[i].scnhdr.s_paddr = addr;
|
segment_info[i].scnhdr.s_paddr = addr;
|
||||||
|
segment_info[i].scnhdr.s_vaddr = addr;
|
||||||
|
|
||||||
if (segment_info[i].scnhdr.s_name[0])
|
if (segment_info[i].scnhdr.s_name[0])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user