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]

Trouble with empty sections


I've been updating the ARM linker tests for global changes in linker
output, and I stumbled across this:

regexp_diff match failure
regexp "^   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT  12 _stack$"
line   "   14   2: 00080000     0  NOTYPE GLOBAL DEFAULT  13 _stack"
FAIL: Mixed ARM/Thumb dynamic application

  [12] .bss              NOBITS          00010368 008368 000004 00  WA 0   0  4
  [13] .ARM.attributes   ARM_ATTRIBUTES  00000000 008368 000010 00     0   0  1

It's moved to a non-allocated section.

    .stack         0x80000 :
  {
    _stack = .;
    *(.stack)
  }

Honestly, I can't follow the discussions that have been had on this
subject.  Maybe this was intended; if so please let me know and I'll
update the test.  But moving to a non-ALLOC section is decidedly odd.

-- 
Daniel Jacobowitz
CodeSourcery


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