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: strip & nop relocs


Alan Modra wrote:
On Fri, Nov 14, 2008 at 10:59:24AM +0000, Nathan Sidwell wrote:
        /* This case can occur when using --strip-symbol on a symbol
! 	 which is used in a relocation entry.  Some compilers use
!          this to link code to debug sections.  It's only a problem if
!          the symbol is in an allocatable section, so complain then.  */

Haven't you just broken the link you are talking about? Why is that not a problem?

You're stripping the debug sections out of the object. Currently that fails because of this dangling link. the user wants that link broken, because they're explicitly removing the debug sections. The patch makes it not an error.


Is there some other case you're concerned about?

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery


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