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: [PATCH] PR ld/16322: ld fails to generate GNU_RELRO segment


On Thu, Jan 9, 2014 at 11:01 AM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:
>> On Thu, Jan 9, 2014 at 10:51 AM, Hans-Peter Nilsson
>> <hans-peter.nilsson@axis.com> wrote:
>
>> > Also, ia64-linux will fail.
>
> And the latest change also made mipsisa32r2el-unknown-linux-gnu
> fail (i.e. likely any mips-linux) where it had clean results
> before:
>
> Running /tmp/hpautotest-binutils/bsrc/src/ld/testsuite/ld-elf/binutils.exp ...
> FAIL: objcopy -shared -z relro (tbss1)
> FAIL: objcopy -shared -z relro (tbss2)
> FAIL: objcopy -shared -z relro (tbss3)
>

I believe those are mips bugs.  Mips linker also generates
NULL segment:

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  REGINFO        0x000114 0x00000114 0x00000114 0x00018 0x00018 R   0x4
  LOAD           0x000000 0x00000000 0x00000000 0x00330 0x00330 R E 0x10000
  LOAD           0x000c00 0x00010c00 0x00010c00 0x00408 0x00408 RW  0x10000
  DYNAMIC        0x00012c 0x0000012c 0x0000012c 0x00098 0x00098 RWE 0x4
  TLS            0x000c00 0x00010c00 0x00010c00 0x00001 0x00800 R   0x400
  GNU_RELRO      0x000c00 0x00010c00 0x00010c00 0x00400 0x00400 R   0x1
  NULL           0x000000 0x00000000 0x00000000 0x00000 0x00000     0x4

before my change.

-- 
H.J.


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