File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,13 +52,15 @@ def parse_linker_args(args):
5252dxe3gen_command = [
5353 wrapper_args .dxe3gen ,
5454 "-o" , output_path ,
55+ "-U" ,
5556]
5657if wrapper_args .import_library :
5758 dxe3gen_command .extend (["-Y" , wrapper_args .import_library ])
5859for libpath in wrapper_args .library_paths :
5960 dxe3gen_command .append ("-L" + libpath )
6061dxe3gen_command .extend (original_linker_args )
61- dxe3gen_command .append ("-U" )
62+ if not "-nostlib" in original_linker_args :
63+ dxe3gen_command .append ("-lgcc" )
6264
6365os .environ ["DXE_LD_LIBRARY_PATH" ] = "dontcare"
6466os .environ ["DJDIR" ] = "dontcare"
Original file line number Diff line number Diff line change 154154 */
155155 #define FOR_EACH_DXE_EXPORT (X ) \
156156 X(__Exit) \
157+ \
157158 X(___deregister_frame_info) \
158- X(___divdi3) \
159- X(___divmoddi4) \
159+ \
160160 X(___dj_huge_val) \
161161 X(___dj_stderr) \
162162 X(___dj_stdin) \
168168 X(___dpmi_simulate_real_mode_procedure_retf) \
169169 X(___fpclassifyd) \
170170 X(___fpclassifyf) \
171+ \
171172 X(___register_frame_info) \
172- X(___udivdi3) \
173- X(___udivmoddi4) \
174- X(___umoddi3) \
173+ \
175174 X(__go32_dpmi_allocate_dos_memory) \
176175 X(__go32_dpmi_chain_protected_mode_interrupt_vector) \
177176 X(__go32_dpmi_free_dos_memory) \
188187 X(_close) \
189188 X(_closedir) \
190189 X(_delay) \
190+ X(_dlregsym) \
191191 X(_dosmemput) \
192192 X(_environ) \
193193 X(_errno) \
You can’t perform that action at this time.
0 commit comments