2 |
This was based on trad-core.c, which was written by John Gilmore of |
This was based on trad-core.c, which was written by John Gilmore of |
3 |
Cygnus Support. |
Cygnus Support. |
4 |
Copyright 1988, 1989, 1991, 1992, 1993, 1994, 1996, 1998, 1999, 2000, |
Copyright 1988, 1989, 1991, 1992, 1993, 1994, 1996, 1998, 1999, 2000, |
5 |
2001, 2002 |
2001, 2002, 2004 |
6 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
7 |
Written by Minh Tran-Le <TRANLE@INTELLICORP.COM>. |
Written by Minh Tran-Le <TRANLE@INTELLICORP.COM>. |
8 |
Converted to back end form by Ian Lance Taylor <ian@cygnus.com>. |
Converted to back end form by Ian Lance Taylor <ian@cygnus.com>. |
122 |
goto loser; |
goto loser; |
123 |
|
|
124 |
core_regsec (abfd)->flags = SEC_HAS_CONTENTS; |
core_regsec (abfd)->flags = SEC_HAS_CONTENTS; |
125 |
core_regsec (abfd)->_raw_size = sizeof (core->cd_regs); |
core_regsec (abfd)->size = sizeof (core->cd_regs); |
126 |
core_regsec (abfd)->vma = (bfd_vma) -1; |
core_regsec (abfd)->vma = (bfd_vma) -1; |
127 |
|
|
128 |
/* We'll access the regs afresh in the core file, like any section. */ |
/* We'll access the regs afresh in the core file, like any section. */ |
135 |
goto loser; |
goto loser; |
136 |
|
|
137 |
core_reg2sec (abfd)->flags = SEC_HAS_CONTENTS; |
core_reg2sec (abfd)->flags = SEC_HAS_CONTENTS; |
138 |
core_reg2sec (abfd)->_raw_size = sizeof (core->cd_fpregs); |
core_reg2sec (abfd)->size = sizeof (core->cd_fpregs); |
139 |
core_reg2sec (abfd)->vma = (bfd_vma) -1; |
core_reg2sec (abfd)->vma = (bfd_vma) -1; |
140 |
core_reg2sec (abfd)->filepos = |
core_reg2sec (abfd)->filepos = |
141 |
(file_ptr) offsetof (struct corehdr, cd_fpregs); |
(file_ptr) offsetof (struct corehdr, cd_fpregs); |
180 |
goto loser; |
goto loser; |
181 |
|
|
182 |
core_section (abfd, n)->flags = flags; |
core_section (abfd, n)->flags = flags; |
183 |
core_section (abfd, n)->_raw_size = core->cd_segs[i].cs_len; |
core_section (abfd, n)->size = core->cd_segs[i].cs_len; |
184 |
core_section (abfd, n)->vma = core->cd_segs[i].cs_address; |
core_section (abfd, n)->vma = core->cd_segs[i].cs_address; |
185 |
core_section (abfd, n)->filepos = core->cd_segs[i].cs_offset; |
core_section (abfd, n)->filepos = core->cd_segs[i].cs_offset; |
186 |
core_section (abfd, n)->alignment_power = 2; |
core_section (abfd, n)->alignment_power = 2; |
204 |
return core_hdr (abfd)->cd_cursig; |
return core_hdr (abfd)->cd_cursig; |
205 |
} |
} |
206 |
|
|
207 |
static boolean |
static bfd_boolean |
208 |
aix386_core_file_matches_executable_p (core_bfd, exec_bfd) |
aix386_core_file_matches_executable_p (core_bfd, exec_bfd) |
209 |
bfd *core_bfd; |
bfd *core_bfd; |
210 |
bfd *exec_bfd; |
bfd *exec_bfd; |
211 |
{ |
{ |
212 |
/* FIXME: We have no way of telling at this point. */ |
/* FIXME: We have no way of telling at this point. */ |
213 |
return true; |
return TRUE; |
214 |
} |
} |
215 |
|
|
216 |
/* If somebody calls any byte-swapping routines, shoot them. */ |
/* If somebody calls any byte-swapping routines, shoot them. */ |
222 |
abort (); |
abort (); |
223 |
} |
} |
224 |
|
|
225 |
#define NO_GET ((bfd_vma (*) PARAMS ((const bfd_byte *))) swap_abort) |
#define NO_GET ((bfd_vma (*) (const void *)) swap_abort) |
226 |
#define NO_GETS ((bfd_signed_vma (*) PARAMS ((const bfd_byte *))) swap_abort) |
#define NO_PUT ((void (*) (bfd_vma, void *)) swap_abort) |
227 |
#define NO_PUT ((void (*) PARAMS ((bfd_vma, bfd_byte *))) swap_abort) |
#define NO_GETS ((bfd_signed_vma (*) (const void *)) swap_abort) |
228 |
|
#define NO_GET64 ((bfd_uint64_t (*) (const void *)) swap_abort) |
229 |
|
#define NO_PUT64 ((void (*) (bfd_uint64_t, void *)) swap_abort) |
230 |
|
#define NO_GETS64 ((bfd_int64_t (*) (const void *)) swap_abort) |
231 |
|
|
232 |
const bfd_target aix386_core_vec = { |
const bfd_target aix386_core_vec = { |
233 |
"aix386-core", |
"aix386-core", |
242 |
0, /* leading underscore */ |
0, /* leading underscore */ |
243 |
' ', /* ar_pad_char */ |
' ', /* ar_pad_char */ |
244 |
16, /* ar_max_namelen */ |
16, /* ar_max_namelen */ |
245 |
NO_GET, NO_GETS, NO_PUT, |
NO_GET64, NO_GETS64, NO_PUT64, |
246 |
NO_GET, NO_GETS, NO_PUT, |
NO_GET, NO_GETS, NO_PUT, |
247 |
NO_GET, NO_GETS, NO_PUT, /* data */ |
NO_GET, NO_GETS, NO_PUT, /* data */ |
248 |
NO_GET, NO_GETS, NO_PUT, |
NO_GET64, NO_GETS64, NO_PUT64, |
249 |
NO_GET, NO_GETS, NO_PUT, |
NO_GET, NO_GETS, NO_PUT, |
250 |
NO_GET, NO_GETS, NO_PUT, /* hdrs */ |
NO_GET, NO_GETS, NO_PUT, /* hdrs */ |
251 |
|
|