From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 0998D385C017 for ; Thu, 19 Mar 2020 19:20:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0998D385C017 Received: by mail-wm1-x32d.google.com with SMTP id c187so3911439wme.1 for ; Thu, 19 Mar 2020 12:20:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6JlUe0iW2m2UxeqTtmr2BIScHd2emohnHmyiSQxdid4=; b=R8WWb+CL1xXKFtIkmV79D7+bUwhetKfPUmXhuBVUE8NQO3tMkF4mKRGVfpGdUVy54/ UiyhKRs1EO0DgMzS83OtZpygAydgBM9QszSsot+YcHGPlheoMMXzvcMMTDmWeoUd1sqh A3MfZnR0Y5sR7Sc/3FZ+VglypxDcLfWRzPgXr9HaWmrNfp/xTXVK32TKNZTDoL16ajrl ZDmoQDlB9Tz1Z33uJB68nLFiuqVo24LKrzH/u4fMEJaMRLNw93as3nkS/hWKrMI3aTki 16yhBMCqnE8lHbu0ETCPWP4ysP2tdQfpdgut96BnEjkQaIRj0F2ER6kzl0DPWRHI1qI/ E69w== X-Gm-Message-State: ANhLgQ3tcfMpupH4lcHWRvlFV8RmkRhou06xADFdCaDUG/c1NHih19Fy Rmb00Qp++H8JnTg7pxB1hQlQxNlb7Itu0w== X-Google-Smtp-Source: ADFU+vvoOWmgQJaa6OszHaHc1o4ie9C84ysn3ZP8r/lJc2rOKAvesesU31s+oDSoAi4lvQYV20z2Lg== X-Received: by 2002:a7b:c308:: with SMTP id k8mr5739759wmj.40.1584645611801; Thu, 19 Mar 2020 12:20:11 -0700 (PDT) Received: from localhost.localdomain (138.sub226.ddfr.nl. [217.27.226.138]) by smtp.gmail.com with ESMTPSA id s1sm4810420wrp.41.2020.03.19.12.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 12:20:10 -0700 (PDT) From: "J.W. Jagersma" To: binutils@sourceware.org Cc: dj@delorie.com, stsp@users.sourceforge.net Subject: [PATCH 0/3] coff-go32-exe: support variable-length stubs Date: Thu, 19 Mar 2020 20:19:20 +0100 Message-Id: <20200319191923.34747-1-jwjagersma@gmail.com> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2020 19:20:27 -0000 The stub size in GO32 executables has historically been fixed at 2048 bytes, due to hardcoded limitations in bfd. Recent patches to djgpp by Stas Sergeev (CC'd) have pushed the stub right up to this limit, so if any further expansion is desired, this must first be patched in bfd. This series includes three patches: The first changes the meaning of the bfd->origin field slightly, so that target code can use this to specify an offset into the file where the actual bfd is located. The second patch then uses this to enable support for variable-sized stubs in the coff-go32-exe format. The final patch is only a cleanup, it normalizes function and variable names in coff-stgo32.c so that they all begin with the same prefix.