From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: snowball3@usa.net Cc: gas2@cygnus.com Subject: Re: .eh_frame problem Date: Thu, 04 Mar 1999 14:32:00 -0000 Message-id: <199903042231.OAA12086@rtl.cygnus.com> References: <199903040515.FAA105708@out2.ibm.net> X-SW-Source: 1999/msg00031.html From: "Mark E." Date: Thu, 4 Mar 1999 00:15:52 -0500 Here's the code: #ifdef BFD_ASSEMBLER #define md_maybe_text() \ ((bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE) != 0) #else #define md_maybe_text() \ (now_seg != data_section && now_seg != bss_section) #endif It seems to me, to parallel the BFD_ASSEMBER version, that the !BFD_ASSEMBER version should be something like: #define md_maybe_text() (now_seg == text_section) That would not be parallel, since when using COFF or ELF it is possible for a section other than text_section to contain code. This will happen if you compile with -ffunction-sections, for example. Ian