X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=vjbQJPXSJrG26OplGZjX7EA8juWK0UY7Gz4J+7XKm6k=; b=boQDlx5jjG1PPiOCEvgIL01LdXIcpv/05ik2GXr8UQTAE4Oiu4vVlQyO8LMLVTZ0Rx jPF96vDWsof2Uiy+FjlkhP2T8c+Ot9D4WVd8Vzg2p7ap8HaquitZR2LWbDCGyHh9n3Uv ByPIbRsTz2eCwtqe4ridVp0E9YpmOXsgV63iCWSq4hhap9VHnMVs3SCyphA2QGJoHTRN prh2h2Yxvy8sGvdf+sT0l29dvhfLpmvWuteIyU70Hr2N5TPNGYM9xbItztEfDrpYsx5d LC+lGB+LGMA+igg4Ig3b9owRFbyY0/B+jKrzeT+17juIxxoge0KK9g17Ejwmlh8/WrS6 GkVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vjbQJPXSJrG26OplGZjX7EA8juWK0UY7Gz4J+7XKm6k=; b=VdL1nY50MqTpKVuqo6J/hwz3cVQHI5f2JNn4EIzYpLPxSlVKGoWeDN62pC//gMVtw6 vzIgW+eMcfHhqNOFyCS1EIkSUleXzi1FGG4IGNAxujCbowY9np+yztW1AIS1cru9nGtG oezF27jia89VWJ52tZ2WZMr2Y+EztEx0WEbqFS9oaTQo1qG1pTzRKbljnkP0CLi0WMys FQ3EDVpz94VIQNgrqRCMgXXLGORs/oV+k45zJQGdtZ/idBQS+od/qwjct9LK8llWIIWL D7kK1N2ihJle8Jv4RLbTHfpKnNLxCH3v7x9wKs0a6aQZParCj2CInSz5KjdjdR36bENN C43w== X-Gm-Message-State: AFqh2kruf6mgsotVnZPmMrYgTU/wLViKpxoOmsJwGG8xzJAk+D2xO/hF khztqLfQcAjJxrwc3Kpy/WfRs/eNe+3/UtjG8SfEdiox X-Google-Smtp-Source: AMrXdXtY1a4P9gc6y0f5OsCD5K9CTWpvtzED685FRIZvKUyWUDtf/fXbMXuP8Aga4WCbGgmntAuJ9LIv7QSmk9oW7k0= X-Received: by 2002:a05:600c:1d25:b0:3da:fa8a:8511 with SMTP id l37-20020a05600c1d2500b003dafa8a8511mr2331199wms.185.1674812636173; Fri, 27 Jan 2023 01:43:56 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <3d9271ae-266d-ee7b-853b-984857ced1c8@gmail.com> References: <63a56722-21d6-a368-6400-907f0cf9d01c AT gmail DOT com> <3b8f674c-bca3-c679-952e-f8ba5af196e7 AT gmail DOT com> <500850be-fd64-3f82-a1e1-929903084e9b AT gmail DOT com> <3d9271ae-266d-ee7b-853b-984857ced1c8 AT gmail DOT com> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Fri, 27 Jan 2023 12:43:55 +0300 Message-ID: Subject: Re: DXE3 with std::vector To: djgpp AT delorie DOT com Content-Type: text/plain; charset="UTF-8" Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk >> - removal of -X: O-OK, default anyway. >> - removal of -S: Are you really sure? >> - removal of -r: Don't think that it'd work. > > Those are in ld_args now (-Wl,-X,-S,-r,-T,dxe.ld), gcc splits it at > the commas. OK, missed that part, >> - removal of assembler for import lib >> generation: Don't think that it'd work. > > The assembler is invoked via dxe_cc (gcc -c) instead. OK, > Getting multiple input sections sounds like some problem with the > linker script. Do you have an open-source project for me to test on? > I'll admit that I've never used DXE libraries before... Here is a tiny one: http://uhexen2.sourceforge.net/tmp/libau.tar.gz cd into src, and adjust Makefile.dj and cross_build.sh scripts as you need. If you want to test linking with -lgcc, remove 'udivdi3.o' from the objects and add -lgcc