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/beos.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/beos.em')
-rw-r--r-- | ld/emultempl/beos.em | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em index 2777be8..e417693 100644 --- a/ld/emultempl/beos.em +++ b/ld/emultempl/beos.em @@ -664,7 +664,7 @@ gld_${EMULATION_NAME}_before_allocation (void) but I'm leaving this here in case we want to enable it for sections which are not mentioned in the linker script. */ -static bfd_boolean +static lang_output_section_statement_type * gld${EMULATION_NAME}_place_orphan (asection *s, const char *secname, int constraint) @@ -674,21 +674,21 @@ gld${EMULATION_NAME}_place_orphan (asection *s, lang_statement_union_type *l; if ((s->flags & SEC_ALLOC) == 0) - return FALSE; + return NULL; /* Don't process grouped sections unless doing a final link. If they're marked as COMDAT sections, we don't want .text\$foo to end up in .text and then have .text disappear because it's marked link-once-discard. */ if (link_info.relocatable) - return FALSE; + return NULL; /* Everything from the '\$' on gets deleted so don't allow '\$' as the first character. */ if (*secname == '\$') einfo ("%P%F: section %s has '\$' as first character\n", secname); if (strchr (secname + 1, '\$') == NULL) - return FALSE; + return NULL; /* Look up the output section. The Microsoft specs say sections names in image files never contain a '\$'. Fortunately, lang_..._lookup creates @@ -726,7 +726,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s, sort_sections. */ lang_add_section (&l->wild_statement.children, s, os); - return TRUE; + return os; } static char * |