diff options
author | Alan Modra <amodra@gmail.com> | 2008-10-20 12:14:29 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-10-20 12:14:29 +0000 |
commit | c2edb4b89e374c7bca0c929dbab444928520a182 (patch) | |
tree | 68b715d8e99733a237dbb558b68c9a362dced8fe /ld/emultempl/mmo.em | |
parent | 7d9616d7565ebf44ce849f24f42fd11f7f0b10f7 (diff) | |
download | gdb-c2edb4b89e374c7bca0c929dbab444928520a182.zip gdb-c2edb4b89e374c7bca0c929dbab444928520a182.tar.gz gdb-c2edb4b89e374c7bca0c929dbab444928520a182.tar.bz2 |
* ldemul.h (ldemul_place_orphan): Update prototype.
(struct ld_emulation_xfer_struct <place_orphan>): Likewise.
* ldemul.c (ldemul_place_orphan): Return pointer to output
section statement.
* emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
* emultempl/mmo.em (mmo_place_orphan): Likewise.
* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
Diffstat (limited to 'ld/emultempl/mmo.em')
-rw-r--r-- | ld/emultempl/mmo.em | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ld/emultempl/mmo.em b/ld/emultempl/mmo.em index 4ff9846..f5ba6dd 100644 --- a/ld/emultempl/mmo.em +++ b/ld/emultempl/mmo.em @@ -46,7 +46,7 @@ fragment <<EOF SEC_READONLY sections right after MMO_TEXT_SECTION_NAME. Much borrowed from elf32.em. */ -static bfd_boolean +static lang_output_section_statement_type * mmo_place_orphan (asection *s, const char *secname, int constraint ATTRIBUTE_UNUSED) @@ -64,7 +64,7 @@ mmo_place_orphan (asection *s, /* We have nothing to say for anything other than a final link. */ if (link_info.relocatable || (s->flags & (SEC_EXCLUDE | SEC_LOAD)) != SEC_LOAD) - return FALSE; + return NULL; /* Only care for sections we're going to load. */ os = lang_output_section_find (secname); @@ -74,13 +74,13 @@ mmo_place_orphan (asection *s, if (os != NULL) { lang_add_section (&os->children, s, os); - return TRUE; + return os; } /* If this section does not have .text-type section flags or there's no MMO_TEXT_SECTION_NAME, we don't have anything to say. */ if ((s->flags & (SEC_CODE | SEC_READONLY)) == 0) - return FALSE; + return NULL; if (hold_text.os == NULL) hold_text.os = lang_output_section_find (hold_text.name); @@ -102,7 +102,7 @@ mmo_place_orphan (asection *s, if (hold_text.os == NULL) hold_text.os = os; - return TRUE; + return os; } /* Remove the spurious settings of SEC_RELOC that make it to the output at |