diff options
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/vms.em | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/emultempl/vms.em b/ld/emultempl/vms.em index 0b6b059..f21796b 100644 --- a/ld/emultempl/vms.em +++ b/ld/emultempl/vms.em @@ -94,11 +94,14 @@ vms_place_orphan (asection *s, 0, 0, 0, 0 }; - /* We have nothing to say for anything other than a final link. */ + /* We have nothing to say for anything other than a final link or an excluded + section. */ if (link_info.relocatable || (s->flags & (SEC_EXCLUDE | SEC_LOAD)) != SEC_LOAD) return NULL; + /* FIXME: we should place sections by VMS program section flags. */ + /* Only handle data sections. */ if ((s->flags & SEC_DATA) == 0) return NULL; |