From cfc38a6ae085a72489d6cb2aa7cad7a251810dc1 Mon Sep 17 00:00:00 2001 From: Gunther Nikl Date: Tue, 23 Dec 2008 16:50:39 +0000 Subject: [PATCH] * bfd/libamiga.h (comments): Improve comments. * bfd/linker.c (generic_link_check_archive_element): Likewise. (_bfd_generic_link_add_one_symbol): Likewise. --- bfd/libamiga.h | 9 ++++----- bfd/linker.c | 17 ++++++++--------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/bfd/libamiga.h b/bfd/libamiga.h index fa5c480..351f0fa 100644 --- a/bfd/libamiga.h +++ b/bfd/libamiga.h @@ -105,6 +105,8 @@ typedef struct amiga_reloc { asymbol *symbol; } amiga_reloc_type; +/* Structure layout *must* match libaout.h/struct aout_symbol. */ + typedef struct amiga_symbol { asymbol symbol; short desc; @@ -115,7 +117,7 @@ typedef struct amiga_symbol { } amiga_symbol_type; /* We take the address of the first element of an asymbol to ensure that the - macro is only ever applied to an asymbol */ + macro is only ever applied to an asymbol. */ #define amiga_symbol(asymbol) ((amiga_symbol_type *)(&(asymbol)->the_bfd)) typedef struct raw_reloc { @@ -135,10 +137,7 @@ typedef struct amiga_per_section { #define amiga_per_section(x) ((amiga_per_section_type *)((x)->used_by_bfd)) -/* The `tdata' struct for all a.out-like object file formats. - Various things depend on this struct being around any time an a.out - file is being handled. An example is dbxread.c in GDB. */ -/* Structure layout *must* match <> */ +/* Structure layout *must* match libaout.h/struct aoutdata. */ struct amiga_data { char *dummy[2]; diff --git a/bfd/linker.c b/bfd/linker.c index 035e638..0755014 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -1247,10 +1247,10 @@ generic_link_check_archive_element (abfd, info, pneeded, collect) h->u.c.size = size; power = bfd_log2 (size); - /* For the amiga, we don't want an alignment bigger than - 2**2. Doing this here is a horribly kludgy, but IMHO the - max power alignment really should be target-dependant so - that we wouldn't have to do this -- daniel */ + /* For the amiga, we don't want an alignment bigger than 2**2. + Doing this here is horrible kludgy, but IMHO the maximal + power alignment really should be target-dependant so that + we wouldn't have to do this -- daniel */ if (bfd_get_flavour(abfd) == bfd_target_amiga_flavour) { if (power > 2) power = 2; @@ -1718,11 +1718,10 @@ _bfd_generic_link_add_one_symbol (info, abfd, name, flags, section, value, unsigned int power; power = bfd_log2 (value); - /* For the amiga, we don't want an alignment bigger than - 2**2. Doing this here is a horribly kludgy, but IMHO - the max power alignment really should be - target-dependant so that we wouldn't have to do this -- - daniel */ + /* For the amiga, we don't want an alignment bigger than 2**2. + Doing this here is horrible kludgy, but IMHO the maximal + power alignment really should be target-dependant so that + we wouldn't have to do this -- daniel */ if (bfd_get_flavour(abfd) == bfd_target_amiga_flavour) { if (power > 2) power = 2;