X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gas%2Fconfig%2Fobj-coff-seh.c;h=b24e435677b822780aac775ade997517deca867b;hb=fd3619828e94a24a92cddec42cbc0ab33352eeb4;hp=183be7925fc39fd6ec63da885c0850797209ce31;hpb=5dfda3562a69686c43aad4fb0269cc9d5ec010d5;p=thirdparty%2Fbinutils-gdb.git diff --git a/gas/config/obj-coff-seh.c b/gas/config/obj-coff-seh.c index 183be7925fc..b24e435677b 100644 --- a/gas/config/obj-coff-seh.c +++ b/gas/config/obj-coff-seh.c @@ -48,7 +48,7 @@ get_pxdata_name (segT seg, const char *base_name) const char *name,*dollar, *dot; char *sname; - name = bfd_get_section_name (stdoutput, seg); + name = bfd_section_name (seg); dollar = strchr (name, '$'); dot = strchr (name + 1, '.'); @@ -95,16 +95,16 @@ make_pxdata_seg (segT cseg, char *name) r = subseg_new (name, 0); /* Check if code segment is marked as linked once. */ - flags = bfd_get_section_flags (stdoutput, cseg) - & (SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD - | SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE - | SEC_LINK_DUPLICATES_SAME_CONTENTS); + flags = (bfd_section_flags (cseg) + & (SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD + | SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE + | SEC_LINK_DUPLICATES_SAME_CONTENTS)); /* Add standard section flags. */ flags |= SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_DATA; /* Apply possibly linked once flags to new generated segment, too. */ - if (!bfd_set_section_flags (stdoutput, r, flags)) + if (!bfd_set_section_flags (r, flags)) as_bad (_("bfd_set_section_flags: %s"), bfd_errmsg (bfd_get_error ())); @@ -161,8 +161,8 @@ seh_validate_seg (const char *directive) const char *cseg_name, *nseg_name; if (seh_ctx_cur->code_seg == now_seg) return 1; - cseg_name = bfd_get_section_name (stdoutput, seh_ctx_cur->code_seg); - nseg_name = bfd_get_section_name (stdoutput, now_seg); + cseg_name = bfd_section_name (seh_ctx_cur->code_seg); + nseg_name = bfd_section_name (now_seg); as_bad (_("%s used in segment '%s' instead of expected '%s'"), directive, nseg_name, cseg_name); ignore_rest_of_line ();