freebsd-dev/sys/sparc64/sparc64
Konstantin Belousov cff8c6f2d1 Add support for weak symbols to the kernel linkers. It means that
linkers no longer raise an error when undefined weak symbols are
found, but relocate as if the symbol value was 0.  Note that we do not
repeat the mistake of userspace dynamic linker of making the symbol
lookup prefer non-weak symbol definition over the weak one, if both
are available.  In fact, kernel linker uses the first definition
found, and ignores duplicates.

Signature of the elf_lookup() and elf_obj_lookup() functions changed
to split result/error code and the symbol address returned.
Otherwise, it is impossible to return zero address as the symbol
value, to MD relocation code.  This explains the mechanical changes in
elf_machdep.c sources.

The powerpc64 R_PPC_JMP_SLOT handler did not checked error from the
lookup() call, the patch leaves the code as is (untested).

Reported by:	glebius
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-09-20 01:27:59 +00:00
..
ata_machdep.c
autoconf.c
bus_machdep.c
cache.c
cam_machdep.c
cheetah.c
clock.c
counter.c
db_disasm.c ddb: finish converting boolean values. 2015-05-21 15:16:18 +00:00
db_hwwatch.c
db_interface.c
db_trace.c
dump_machdep.c Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
eeprom.c
elf_machdep.c Add support for weak symbols to the kernel linkers. It means that 2015-09-20 01:27:59 +00:00
exception.S Fix KSTACK_PAGES issue when the default value was changed in KERNCONF 2015-07-16 10:46:52 +00:00
gdb_machdep.c
genassym.c
identcpu.c
in_cksum.c
interrupt.S
intr_machdep.c
iommu.c
jbusppm.c
locore.S
machdep.c o Revert the other functional half of r239864, i. e. the merge of r134227 2015-07-24 15:13:21 +00:00
mem.c Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed 2015-01-24 12:51:15 +00:00
mp_exception.S
mp_locore.S
mp_machdep.c o Revert the other functional half of r239864, i. e. the merge of r134227 2015-07-24 15:13:21 +00:00
nexus.c
ofw_machdep.c
pmap.c Add two new pmap functions: 2015-08-04 19:46:13 +00:00
prof_machdep.c
rtc.c
rwindow.c
sc_machdep.c
schppm.c
spitfire.c
ssm.c
stack_machdep.c Add stack_save_td_running(), a function to trace the kernel stack of a 2015-09-11 03:54:37 +00:00
support.S Fix KSTACK_PAGES issue when the default value was changed in KERNCONF 2015-07-16 10:46:52 +00:00
swtch.S
sys_machdep.c
tick.c o Revert the other functional half of r239864, i. e. the merge of r134227 2015-07-24 15:13:21 +00:00
tlb.c
trap.c Do not hold the process around the vm_fault() call from the trap()s. 2015-09-10 17:46:48 +00:00
tsb.c
uio_machdep.c
upa.c
vm_machdep.c Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
zeus.c