bjcopy changes PT_GNU_RELRO segment when there is PT_TLS segment.
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)
The new patch is at http://sourceware.org/ml/binutils/2006-10/msg00268.html
Fixed by http://sourceware.org/ml/binutils/2007-09/msg00229.html