Ver código fonte

+ enable tf_smartlink_library and support library-based smartlinking on the z80-embedded target

git-svn-id: branches/z80@45082 -
nickysn 5 anos atrás
pai
commit
b1f7770845
2 arquivos alterados com 3 adições e 3 exclusões
  1. 2 2
      compiler/systems/i_embed.pas
  2. 1 1
      compiler/systems/t_embed.pas

+ 2 - 2
compiler/systems/i_embed.pas

@@ -722,7 +722,7 @@ unit i_embed;
             name         : 'Embedded';
             shortname    : 'embedded';
             flags        : [tf_needs_symbol_size,tf_files_case_sensitive,
-                            tf_smartlink_sections];
+                            tf_smartlink_library];
             cpu          : cpu_sys_z80;
             unit_env     : '';
             extradefines : '';
@@ -753,7 +753,7 @@ unit i_embed;
             assemextern  : as_sdcc_sdasz80;
             link         : ld_none;
             linkextern   : ld_embedded;
-            ar           : ar_gnu_ar;
+            ar           : ar_sdcc_sdar;
             res          : res_none;
             dbg          : dbg_dwarf2;
             script       : script_unix;

+ 1 - 1
compiler/systems/t_embed.pas

@@ -1906,7 +1906,7 @@ function TlinkerEmbedded_SdccSdld.WriteResponseFile: Boolean;
       while not StaticLibFiles.Empty do
        begin
         S:=StaticLibFiles.GetFirst;
-        LinkRes.AddFileName((maybequoted(s)));
+        LinkRes.Add('-l'+maybequoted(s));
        end;
      end;