Commit 4c2d4e1d authored by strauman's avatar strauman
Browse files

- use SEC_CODE flag instead of evaluating section name.

parent ea3e55c6
......@@ -353,10 +353,14 @@ unsigned long sz;
CexpSegment
cexpSegsMatch(CexpSegment segArray, struct bfd *abfd, void *s)
{
#if 0
const char *nam = bfd_get_section_name(abfd, (asection*)s);
if ( 0 == strncmp(nam,".text",5)
|| 0 == strncmp(nam,".gnu.linkonce.t.",16) )
#else
if ( SEC_CODE & bfd_get_section_flags(abfd, (asection*)s) )
#endif
return &segArray[SEG_TEXT];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment