Re: add-symbol-file-from-memory patch breaks non-elf targets?

Roland McGrath
2004-04-23T04:19:04Z

It's unfortunate that this is done in a way that requires a tweak for every
specific target. The functionality will work, and thus ought to be
available, on any ELF target. The use of symbol_file_add_from_memory from
other gdb code to support Linux's vDSO is already needed on more than one
Linux target and it is not unlikely that other Linux targets will follow
suit in the future. It is crufty and makes maintenance error prone if we
have nothing better than copying and updating makefile boilerplate for
every specific Linux/CPU target. For example, your patch covers only x86
and powerpc, but already IA64 and x86-64 need this support (and AFAIK not
yet powerpc).