@@ -757,15 +757,13 @@ def link_objects(env, native_qstr_vals_len, native_qstr_objs_len):
757757 bytearray (native_qstr_vals_len * env .arch .qstr_entry_size ),
758758 env .arch .qstr_entry_size ,
759759 )
760- env .sections .append (env .qstr_val_section )
761760
762761 # Create section to contain mp_native_obj_table
763762 env .obj_table_section = Section (
764763 ".external.obj_table" ,
765764 bytearray (native_qstr_objs_len * env .arch .word_size ),
766765 env .arch .word_size ,
767766 )
768- env .sections .append (env .qstr_obj_section )
769767
770768 # Resolve unknown symbols
771769 mp_fun_table_sec = Section (".external.mp_fun_table" , b"" , 0 )
@@ -944,17 +942,6 @@ def build_mpy(env, entry_offset, fmpy, native_qstr_vals, native_qstr_objs):
944942 # MPY: machine code
945943 out .write_bytes (env .full_text )
946944
947- # MPY: n_qstr_link (assumes little endian)
948- out .write_uint (len (native_qstr_vals ) + len (native_qstr_objs ))
949- for q in range (len (native_qstr_vals )):
950- off = env .qstr_val_section .addr + q * env .arch .qstr_entry_size
951- out .write_uint (off << 2 )
952- out .write_qstr (native_qstr_vals [q ])
953- for q in range (len (native_qstr_objs )):
954- off = env .qstr_obj_section .addr + q * env .arch .word_size
955- out .write_uint (off << 2 | 3 )
956- out .write_qstr (native_qstr_objs [q ])
957-
958945 # MPY: scope_flags
959946 scope_flags = MP_SCOPE_FLAG_VIPERRELOC
960947 if len (env .full_rodata ):
@@ -967,7 +954,6 @@ def build_mpy(env, entry_offset, fmpy, native_qstr_vals, native_qstr_objs):
967954 if len (env .full_rodata ):
968955 rodata_const_table_idx = 1
969956 out .write_uint (len (env .full_rodata ))
970- out .write_bytes (env .full_rodata )
971957 if len (env .full_bss ):
972958 bss_const_table_idx = 2
973959 out .write_uint (len (env .full_bss ))
0 commit comments