Bug 3281 - objcopy changes PT_GNU_RELRO when there is PT_TLS
Summary: objcopy changes PT_GNU_RELRO when there is PT_TLS
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.18
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 21:54 UTC by H.J. Lu
Modified: 2007-09-18 00:35 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
A patch to show the bug (436 bytes, patch)
2006-09-28 21:55 UTC, H.J. Lu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2006-09-28 21:54:04 UTC
bjcopy changes PT_GNU_RELRO segment when there is PT_TLS segment.
Comment 1 H.J. Lu 2006-09-28 21:55:27 UTC
Created attachment 1334 [details]
A patch to show the bug

With this patch, "make check" in ld gives:

FAIL: objcopy -shared -z relro (tbss1)
FAIL: objcopy -shared -z relro (tdata1)
FAIL: objcopy -shared -z relro (tbss2)
FAIL: objcopy -shared -z relro (tdata2)
Comment 2 H.J. Lu 2006-10-24 05:56:47 UTC
The new patch is at

http://sourceware.org/ml/binutils/2006-10/msg00268.html
Comment 3 H.J. Lu 2007-09-18 00:35:57 UTC
Fixed by

http://sourceware.org/ml/binutils/2007-09/msg00229.html