ld -r breakage

Jakub Jelinek jakub@redhat.com
Mon Jun 12 02:16:00 GMT 2000


Hi!

ld -r no longer preserves SEC_READONLY attribute for some sections.
A test case can be say
cat > foo.c <<EOF
void foo() { }
EOF
gcc -c -o foo.o foo.c
ld -r -o foo.lo foo.o

It used to work correctly, at least in H.J.'s 2.9.5.0.22.
Seen on both sparc and i386.
I haven't yet had time to track this down, if someone gets to it before
myself, I'll appreciate it.

	Jakub


More information about the Binutils mailing list