File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -341,8 +341,8 @@ enum EncodedType {
341341namespace UserSections {
342342extern const char * Name;
343343extern const char * SourceMapUrl;
344-
345344extern const char * Dylink;
345+ extern const char * Linking;
346346
347347enum Subsection {
348348 NameFunction = 1 ,
Original file line number Diff line number Diff line change @@ -713,6 +713,9 @@ void WasmBinaryBuilder::readUserSection(size_t payloadLen) {
713713 readNames (payloadLen - (pos - oldPos));
714714 } else {
715715 // an unfamiliar custom section
716+ if (sectionName.equals (BinaryConsts::UserSections::Linking)) {
717+ std::cerr << " warning: linking section is present, which binaryen cannot handle yet - relocations will be invalidated!\n " ;
718+ }
716719 wasm.userSections .resize (wasm.userSections .size () + 1 );
717720 auto & section = wasm.userSections .back ();
718721 section.name = sectionName.str ;
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ namespace BinaryConsts {
2929namespace UserSections {
3030const char * Name = " name" ;
3131const char * SourceMapUrl = " sourceMappingURL" ;
32-
3332const char * Dylink = " dylink" ;
33+ const char * Linking = " linking" ;
3434}
3535}
3636
You can’t perform that action at this time.
0 commit comments