Просмотр исходного кода

Fix debugging info for kernel-based programs and programs using custom relocations.

git-svn-id: file:///var/svn/tigccpp/trunk/tigcc/ld-tigcc@263 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 19 лет назад
Родитель
Сommit
de988f791d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      insert/model/list.c

+ 1 - 1
insert/model/list.c

@@ -77,7 +77,7 @@ OFFSET RelocListModel (SECTION *SourceSection, RELOC **NextItem, RELOC_USER_DATA
 		if ((CurReloc->Location >= 0) && (CurReloc->Location + CurReloc->Size <= SourceSection->Size))
 		{
 			// Ignore relocs which we will not emit.
-			if (!(CurReloc->Relative || CurReloc->Target.Builtin))
+			if (!(CurReloc->Relative || CurReloc->Target.Builtin || CurReloc->Parent->DebuggingInfoType || (CurReloc->Target.Symbol && CurReloc->Target.Symbol->Parent->DebuggingInfoType)))
 			{
 				// We can only emit 4-byte absolute relocs.
 				// Everything else would need to be specified in the user data structure.