This is the mail archive of the binutils@sourceware.cygnus.com 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]

Re: How to stop --gc-sections nukeing all sections?


   Date: Mon, 17 Apr 2000 17:44:50 -0700
   From: Richard Henderson <rth@cygnus.com>

   On Mon, Apr 17, 2000 at 05:25:48PM -0700, Ian Lance Taylor wrote:
   > But the GNU linker doesn't preserve link order of sections.

   Yes it does.  Section foo from a.o and b.o are placed in the
   order that the two object files appeared on the link line.

That is true, and it is documented.

   > Bear in mind that we are only talking about sections which do not
   > appear in the linker script.

   Bear in mind that I'm not talking about sections with different
   names, but the placement of all sections with the same name.

But that is not what the poster who started this thread was talking
about.  He was compiling the kernel with -ffunction-sections, so he
had many sections with many names.  It didn't work because those
sections didn't wind up in the expected order.

Ian

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