mirror of
https://github.com/bebbo/amigaos-binutils-2.14.git
synced 2025-12-08 22:38:24 +00:00
* bfd/libamiga.h (comments): Improve comments.
* bfd/linker.c (generic_link_check_archive_element): Likewise. (_bfd_generic_link_add_one_symbol): Likewise.
This commit is contained in:
+4
-5
@@ -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 <<libaout.h/struct aoutdata>> */
|
||||
/* Structure layout *must* match libaout.h/struct aoutdata. */
|
||||
|
||||
struct amiga_data {
|
||||
char *dummy[2];
|
||||
|
||||
+8
-9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user