aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2002-02-19 16:33:04 +0000
committerFrank Ch. Eigler <fche@redhat.com>2002-02-19 16:33:04 +0000
commit6eeeec9bb275bbe46b669ab4dc2691aaf471796c (patch)
treed68a23dcc6a1206e7eaa4b08a0c1ba02117a13c6 /bfd/syms.c
parent9a0ccb24782a48c2fb20dcc68dd6baed574b61cd (diff)
downloadbinutils-6eeeec9bb275bbe46b669ab4dc2691aaf471796c.zip
binutils-6eeeec9bb275bbe46b669ab4dc2691aaf471796c.tar.gz
binutils-6eeeec9bb275bbe46b669ab4dc2691aaf471796c.tar.bz2
2002-02-19 Frank Ch. Eigler <fche@redhat.com>
* syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index b25306e..f0ffaa5 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -545,23 +545,25 @@ struct section_to_type
adding entries. Since it is so short, a linear search is used. */
static const struct section_to_type stt[] =
{
- {"*DEBUG*", 'N'},
{".bss", 'b'},
- {"zerovars", 'b'}, /* MRI .bss */
+ {"code", 't'}, /* MRI .text */
{".data", 'd'},
- {"vars", 'd'}, /* MRI .data */
+ {"*DEBUG*", 'N'},
+ {".debug", 'N'}, /* MSVC's .debug (non-standard debug syms) */
+ {".drectve", 'i'}, /* MSVC's .drective section */
+ {".edata", 'e'}, /* MSVC's .edata (export) section */
+ {".fini", 't'}, /* ELF fini section */
+ {".idata", 'i'}, /* MSVC's .idata (import) section */
+ {".init", 't'}, /* ELF init section */
+ {".pdata", 'p'}, /* MSVC's .pdata (stack unwind) section */
{".rdata", 'r'}, /* Read only data. */
{".rodata", 'r'}, /* Read only data. */
{".sbss", 's'}, /* Small BSS (uninitialized data). */
{".scommon", 'c'}, /* Small common. */
{".sdata", 'g'}, /* Small initialized data. */
{".text", 't'},
- {"code", 't'}, /* MRI .text */
- {".drectve", 'i'}, /* MSVC's .drective section */
- {".idata", 'i'}, /* MSVC's .idata (import) section */
- {".edata", 'e'}, /* MSVC's .edata (export) section */
- {".pdata", 'p'}, /* MSVC's .pdata (stack unwind) section */
- {".debug", 'N'}, /* MSVC's .debug (non-standard debug syms) */
+ {"vars", 'd'}, /* MRI .data */
+ {"zerovars", 'b'}, /* MRI .bss */
{0, 0}
};