Subject: Bogus variable in ld.elf_so
To: None <>
From: Bang Jun-Young <>
List: tech-toolchain
Date: 09/06/2002 01:47:06

I don't understand this in ld.elf_so:

		tmp = (Elf_Addr)(defobj->relocbase + def->st_value);
		if (*where != tmp)
			*where = tmp;

If *where is not same as tmp, value of tmp is assigned to *where and
they have same value. If *where is same as tmp, they are still same.
I can see there lots of unnecessary operations like above. Wouldn't
it be made simpler like

		*where = (Elf_Addr)(defobj->relocbase + def->st_value);



Bang Jun-Young <>