This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SEC_NEVER_LOAD cleanup


On 15/10/2010 23:50, Dave Korn wrote:
> On 15/10/2010 21:36, Kai Tietz wrote:
> 
>> Well, you can add this section to the comparison for debugging section
>> in bfd's coffcode.h (like done there for the others - .debug*,
>> comment, etc). Should work then.
> 
>   You mean like the attached?  Didn't work.  

  Wasn't attached either.  Boh!

    cheers,
      DaveK
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ff69704..c7739a8 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -372,6 +372,7 @@ CODE_FRAGMENT
 #define STRING_SIZE_SIZE 4
 
 #define DOT_DEBUG	".debug"
+#define GNU_DEBUGLINK	".gnu_debuglink"
 #define GNU_LINKONCE_WI ".gnu.linkonce.wi."
 #define DOT_RELOC	".reloc"
 
@@ -544,7 +545,8 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
       styp_flags = STYP_LIT;
 #endif /* _LIT */
     }
-  else if (CONST_STRNEQ (sec_name, DOT_DEBUG))
+  else if (CONST_STRNEQ (sec_name, DOT_DEBUG)
+	|| CONST_STRNEQ (sec_name, GNU_DEBUGLINK))
     {
       /* Handle the XCOFF debug section and DWARF2 debug sections.  */
       if (!sec_name[6])
@@ -641,6 +643,7 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
   if (CONST_STRNEQ (sec_name, DOT_DEBUG)
 #ifdef COFF_LONG_SECTION_NAMES
       || CONST_STRNEQ (sec_name, GNU_LINKONCE_WI)
+      || CONST_STRNEQ (sec_name, GNU_DEBUGLINK)
 #endif
       || CONST_STRNEQ (sec_name, ".stab"))
     is_dbg = TRUE;
@@ -799,6 +802,7 @@ styp_to_sec_flags (bfd *abfd ATTRIBUTE_UNUSED,
 #endif
 #ifdef COFF_LONG_SECTION_NAMES
 	   || CONST_STRNEQ (name, GNU_LINKONCE_WI)
+	   || CONST_STRNEQ (name, GNU_DEBUGLINK)
 #endif
 	   || CONST_STRNEQ (name, ".stab"))
     {
@@ -1132,6 +1136,7 @@ styp_to_sec_flags (bfd *abfd,
   if (CONST_STRNEQ (name, DOT_DEBUG)
 #ifdef COFF_LONG_SECTION_NAMES
       || CONST_STRNEQ (name, GNU_LINKONCE_WI)
+      || CONST_STRNEQ (name, GNU_DEBUGLINK)
 #endif
       || CONST_STRNEQ (name, ".stab"))
     is_dbg = TRUE;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]