When linking static libraries (* .a) inside an Ios project, I have a warning: unknown dwarf DW_FORM_strp

In delphi tokyo, when I link static libraries (* .a) inside an Ios project like this:

procedure StubProc1; cdecl; external 'FBSDKCoreKit.a' name 'OBJC_CLASS_$_FBSDKAccessToken';

      

I am getting a lot of warnings like this:

ld: warning: unknown dwarf DW_FORM_strp (offset = 0xFFFF6E38) big too C: \ Dev \ Lib \ ios \ facebook \ FBSDKShareKit.framework \ FBSDKShareKit.a (FBSDKAppInviteContent.o)

Any idea what went wrong? What does it mean unknown dwarf DW_FORM_strp

?

+3


source to share


1 answer


Reference code:

https://opensource.apple.com/source/cxxfilt/cxxfilt-9/cxxfilt/binutils/dwarf.c.auto.html

/* Process the contents of a .debug_info section.  If do_loc is non-zero
   then we are scanning for location lists and we do not want to display
   anything to the user.  */

static int
process_debug_info (struct dwarf_section *section, void *file,
int do_loc)

      

It then calls read_and_display_attr

β†’ read_and_display_attr_value

β†’ fetch_indirect_string

:



offset -= section->address;
if (offset > section->size)
    {
        warn (_("DW_FORM_strp offset too big: %lx\n"), offset);
        return _("<offset is too big>");
}

      

So, it looks like this warning is for debugging purposes only.

Maybe your third party library is missing debugging information or something incompatible for debugging (remember, even if you are building for release, there may still be some debugging information in your application).

As and just for debugging, once you have successfully compiled your project, this warning is irrelevant.

0


source







All Articles